package eio

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Flow.PiSource

Sourcemodule type SOURCE = sig ... end
Sourcemodule type SINK = sig ... end
Sourcemodule type SHUTDOWN = sig ... end
Sourceval source : (module SOURCE with type t = 't) -> ('t, source_ty) Resource.handler
Sourceval sink : (module SINK with type t = 't) -> ('t, sink_ty) Resource.handler
Sourceval shutdown : (module SHUTDOWN with type t = 't) -> ('t, shutdown_ty) Resource.handler
Sourcemodule type TWO_WAY = sig ... end
Sourceval two_way : (module TWO_WAY with type t = 't) -> ('t, two_way_ty) Resource.handler
Sourcetype Resource.pi +=
  1. | Source : ('t, (module SOURCE with type t = 't), [> source_ty ]) Resource.pi
  2. | Sink : ('t, (module SINK with type t = 't), [> sink_ty ]) Resource.pi
  3. | Shutdown : ('t, (module SHUTDOWN with type t = 't), [> shutdown_ty ]) Resource.pi
Sourceval simple_copy : single_write:('t -> Cstruct.t list -> int) -> 't -> src:_ source -> unit

simple_copy ~single_write implements SINK's copy API using single_write.

OCaml

Innovation. Community. Security.