NesLwt_streaminclude module type of Lwt_streamval from : (unit -> 'a option Lwt.t) -> 'a tval from_direct : (unit -> 'a option) -> 'a tval create : unit -> 'a t * ('a option -> unit)val create_with_reference : unit -> 'a t * ('a option -> unit) * ('b -> unit)class type !'a bounded_push = object ... endval create_bounded : int -> 'a t * 'a bounded_pushval return : 'a -> 'a tval return_lwt : 'a Lwt.t -> 'a tval of_seq : 'a Stdlib.Seq.t -> 'a tval of_lwt_seq : 'a Lwt_seq.t -> 'a tval of_list : 'a list -> 'a tval of_array : 'a array -> 'a tval of_string : string -> char tval to_list : 'a t -> 'a list Lwt.tval to_string : char t -> string Lwt.tval peek : 'a t -> 'a option Lwt.tval npeek : int -> 'a t -> 'a list Lwt.tval get : 'a t -> 'a option Lwt.tval nget : int -> 'a t -> 'a list Lwt.tval get_while : ('a -> bool) -> 'a t -> 'a list Lwt.tval get_while_s : ('a -> bool Lwt.t) -> 'a t -> 'a list Lwt.tval next : 'a t -> 'a Lwt.tval last_new : 'a t -> 'a Lwt.tval junk : 'a t -> unit Lwt.tval njunk : int -> 'a t -> unit Lwt.tval junk_while : ('a -> bool) -> 'a t -> unit Lwt.tval junk_while_s : ('a -> bool Lwt.t) -> 'a t -> unit Lwt.tval junk_available : 'a t -> unitval get_available : 'a t -> 'a listval get_available_up_to : int -> 'a t -> 'a listval is_empty : 'a t -> bool Lwt.tval is_closed : 'a t -> boolval closed : 'a t -> unit Lwt.tval junk_old : 'a t -> unit Lwt.tval fold : ('a -> 'b -> 'b) -> 'a t -> 'b -> 'b Lwt.tval fold_s : ('a -> 'b -> 'b Lwt.t) -> 'a t -> 'b -> 'b Lwt.tval iter : ('a -> unit) -> 'a t -> unit Lwt.tval iter_p : ('a -> unit Lwt.t) -> 'a t -> unit Lwt.tval iter_s : ('a -> unit Lwt.t) -> 'a t -> unit Lwt.tval iter_n : ?max_concurrency:int -> ('a -> unit Lwt.t) -> 'a t -> unit Lwt.tval find : ('a -> bool) -> 'a t -> 'a option Lwt.tval find_s : ('a -> bool Lwt.t) -> 'a t -> 'a option Lwt.tval find_map : ('a -> 'b option) -> 'a t -> 'b option Lwt.tval find_map_s : ('a -> 'b option Lwt.t) -> 'a t -> 'b option Lwt.tVariant of from for when the function can return a “last” element. The stream is terminated after it.
val get_available_1 : 'a t -> 'a optionVariant of get_available that returns only the first element. Note that None, in this case, represents the absence of elements, not the end of the stream.