fromPromise
fromPromise<
A>(p):Deferred<A>
Defined in: Core/Deferred.ts:42
Wraps a Promise into a Deferred, structurally excluding rejection handlers,
.catch(), .finally(), and chainable .then().
Precondition: p must never reject. If p rejects, the returned Deferred will
never resolve — await-ing it will hang indefinitely. Use TaskResult.tryCatch to
handle operations that may fail before converting to a Deferred.
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”Promise<A>
Returns
Section titled “Returns”Deferred<A>