createDeferred()
Home > @backstage/types
> createDeferred
Creates a deferred promise that can be resolved or rejected later.
Signature:
function createDeferred<TResolved = void, TRejected = Error>(): DeferredPromise<TResolved, TRejected>;
Returns:
DeferredPromise<TResolved, TRejected>