mirage-flow-combinators
Flow implementations and combinators for MirageOS specialized to lwt
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library mirage-flow-combinators
Parameters
module Clock : Mirage_clock.MCLOCK
module A : SHUTDOWNABLE
module B : SHUTDOWNABLE
Signature
val proxy :
A.flow ->
B.flow ->
( Mirage_flow.stats * Mirage_flow.stats, error ) result Lwt.t
proxy a b
proxies data between a
and b
until both sides close. If either direction encounters an error then so will proxy
. If both directions succeed, then return I/O statistics.