yield* instruction for maybeAsync to resolve a MaybePromise in a type-safe way.
yield*
maybeAsync
maybeAsync(function* () { return yield* resolve(Promise.resolve(123)); // 123}); Copy
maybeAsync(function* () { return yield* resolve(Promise.resolve(123)); // 123});
Generated using TypeDoc
yield*
instruction formaybeAsync
to resolve a MaybePromise in a type-safe way.