UNPKG

@thi.ng/rstream

Version:

Reactive streams & subscription primitives for constructing dataflow graphs / pipelines

14 lines 478 B
import { type WithErrorHandlerOpts } from "./api.js"; /** * Yields a single-value {@link Stream} of the resolved promise and then * automatically marks itself done. * * @remarks * It doesn't matter if the promise resolves before the first subscriber * has attached. * * @param src - * @param opts - */ export declare const fromPromise: <T>(src: Promise<T>, opts?: Partial<WithErrorHandlerOpts>) => import("./stream.js").Stream<T>; //# sourceMappingURL=promise.d.ts.map