UNPKG

sodiumjs

Version:

A Functional Reactive Programming (FRP) library for JavaScript

16 lines (15 loc) 645 B
import { Lambda2 } from "./Lambda"; import { StreamWithSend } from "./Stream"; import { Vertex } from './Vertex'; /** * A stream that allows values to be pushed into it, acting as an interface between the * world of I/O and the world of FRP. Code that exports StreamSinks for read-only use * should downcast to {@link Stream}. */ export declare class StreamSink<A> extends StreamWithSend<A> { private disableListenCheck; constructor(f?: ((l: A, r: A) => A) | Lambda2<A, A, A>); private coalescer; send(a: A): void; listen_(target: Vertex, h: (a: A) => void, suppressEarlierFirings: boolean): () => void; }