Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Shuttle.Input_channel
Sourcedrain t
reads chunks of data from the reader and discards them.
pipe
returns a reader pipe that contains the results of reading chunks from an input_channel.
transfer
will read chunks from an input channel and write them to the provided writer end of an async pipe. The deferred returned by the function will be determined on EOF or if the writer is closed. Use transfer
in scenarios where pipe
is needed, but if there is a need to not close the channel automatically once the transfer is finished.
val of_pipe :
?buf_len:int ->
Core.Info.t ->
string Async_kernel.Pipe.Reader.t ->
t Async_kernel.Deferred.t