import * as T from "../../Task/_core"; import type { XPromise } from "../model"; import { completeWith } from "./completeWith"; /** * Completes the promise with the specified value. */ export const succeed = (a: A) => (promise: XPromise) => completeWith(T.pure(a))(promise); /** * Completes the promise with the specified value. */ export const succeed_ = (promise: XPromise, a: A) => completeWith(T.pure(a))(promise);