Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Represents the finite version of an Lambda_streams.Async
stream.
val pure : 'a -> 'a t
val empty : unit -> 'a t
val from_list : 'a list -> 'a t
val take' : ?close:unit Sync.output -> int -> 'a Async.t -> 'a t
Takes n
elements from an infinite stream and converts it to a finite one. Optionally takes an output stream (?close
) to close the connection at Signal.t.EndOfSignal
if the async stream is connection-based.