Creates an Observable just like RxJS create, but exposes an AbortSignal in addition to the subscriber
Type parameters
T
Parameters
Optional subscribe: undefined | function
Returns Observable<T>
Const createAbortError
createAbortError(): Error
Returns Error
Const defer
defer<T>(factory: function): Observable<T>
Easiest way to wrap an abortable async function into a Promise.
The factory is called every time the Observable is subscribed to, and the AbortSignal is aborted on unsubscription.
Calls next for every emission and returns a Promise that resolves when the Observable completed, rejects if the
Observable errors or rejects with an AbortError when the AbortSignal is aborted.
Returns a Promise that resolves with the last emission of the given Observable,
rejects if the Observable errors or rejects with an AbortError when the AbortSignal is aborted.
Like RxJS
concatMap, but passes an AbortSignal that is aborted when the returned Observable is unsubscribed from.