// ets_tracing: off import { succeed as effectSucceed } from "../Effect/core.js" import { completeWith } from "./completeWith.js" import type { Promise } from "./promise.js" /** * Completes the promise with the specified value. */ export function succeed(a: A) { return (promise: Promise) => completeWith(effectSucceed(a))(promise) } /** * Completes the promise with the specified value. */ export function succeed_(promise: Promise, a: A) { return completeWith(effectSucceed(a))(promise) }