Rest
See obtain_map. Scheduled for removal in June 2027.
obtain_map
Immediately returns a map equal to that eventually obtained by the given async function.
const map = unsuspended_map(async () => { await timeout(1000); return map(() => { if (input === undefined) { return "foo"; } });});console.log(await map()); // "foo" Copy
const map = unsuspended_map(async () => { await timeout(1000); return map(() => { if (input === undefined) { return "foo"; } });});console.log(await map()); // "foo"
Generated using TypeDoc
Deprecated
See
obtain_map
. Scheduled for removal in June 2027.Immediately returns a map equal to that eventually obtained by the given async function.
Example