UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

13 lines (10 loc) 349 B
// ets_tracing: off import { succeedWith } from "../Effect/core.js" import type { FiberID } from "../Fiber/id.js" import { unsafeMake } from "./unsafeMake.js" /** * Makes a new promise to be completed by the fiber with the specified id. */ export function makeAs<E, A>(fiberId: FiberID) { return succeedWith(() => unsafeMake<E, A>(fiberId)) }