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 |
---|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
Promise
<T
| null
>