Class type Lwt_stream.bounded_push
Type of sources for bounded push-streams.
method size : intSize of the stream.
method resize : int -> unitChange the size of the stream queue. Note that the new size can smaller than the current stream queue size.
It raises Stdlib.Invalid_argument if size < 0.
method push : 'a -> unit Lwt.tPushes a new element to the stream. If the stream is full then it will block until one element is consumed. If another thread is already blocked on push, it raises Lwt_stream.Full.
method close : unitCloses the stream. Any thread currently blocked on a call to the push method fails with Lwt_stream.Closed.
method count : intNumber of elements in the stream queue.
method blocked : boolIs a thread is blocked on a call to the push method?
method closed : boolIs the stream closed?
method set_reference : 'a. 'a -> unitSet the reference to an external source.