package mirage-flow

  1. Overview
  2. Docs

Parameters

module F : V1_LWT.FLOW

Signature

val ic : ?buffer_size:int -> ?close:bool -> F.flow -> Lwt_io.input_channel

Build an Lwt_io input channel from a mirage flow. If close is omitted, the mirage flow will be closed when the input channel is closed.

val oc : ?buffer_size:int -> ?close:bool -> F.flow -> Lwt_io.output_channel

Build an Lwt_io output channel from a mirage flow. If close is omitted, the mirage flow will not be closed when the output channel is closed.