Skip to main content

Function: mapAbortedToNull()

mapAbortedToNull<T>(promise, signal): Promise<T | null>

Transforms Promise in such a way that resolved or rejected results are mapped to null if specified abort signal is aborted.

Type Parameters

Type Parameter

T

Parameters

ParameterType

promise

Promise<T>

signal

undefined | AbortSignal

Returns

Promise<T | null>

Defined in

coreUtils/async.ts:7