Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Shuttle.Output_channelSourceAlternative to Async_unix.Writer, based on the low latency transport in async_rpc.
val create :
?initial_buffer_size:int ->
?write_timeout:Core.Time_ns.Span.t ->
Async_unix.Fd.t ->
tcreate ?initial_buffer_size ?max_buffer_size ?write_timeout fd creates a new writer.
The writer doesn't flush automatically and the user is responsible for calling flush, which triggers a write system call if needed.
schedule_bigstring schedules a bigstring to be written on the next flush. It is not safe to modify this bigstring until the writer has been flushed, or closed.
write_string copies the string into the writer's internal buffer. The string will surface the next time the writer schedules a write.
close will close the underlying file descriptor after waiting for the writer to be flushed.