UNPKG

@effect-ts/system

Version:

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

18 lines (16 loc) 473 B
// ets_tracing: off import { succeed as effectSucceed } from "../Effect/core.mjs"; import { completeWith } from "./completeWith.mjs"; /** * Completes the promise with the specified value. */ export function succeed(a) { return promise => completeWith(effectSucceed(a))(promise); } /** * Completes the promise with the specified value. */ export function succeed_(promise, a) { return completeWith(effectSucceed(a))(promise); } //# sourceMappingURL=succeed.mjs.map