Module Finite.Async
Represents the finite version of an Async stream.
val pure : 'a -> 'a tval empty : unit -> 'a tval from_list : 'a list -> 'a tval map : ('a -> 'b) -> 'a t -> 'b tval filter : ('a -> bool) -> 'a t -> 'a tval scan : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'b tval take : int -> 'a t -> 'a tval take' : ?close:unit Sync.output -> int -> 'a Async.t -> 'a tTakes
nelements from an infinite stream and converts it to a finite one. Optionally takes an output stream (?close) to close the connection atSignal.t.EndOfSignalif the async stream is connection-based.