Flow.Pimodule type SOURCE = sig ... endmodule type SINK = sig ... endmodule type SHUTDOWN = sig ... endval source :
(module SOURCE with type t = 't) ->
('t, source_ty) Resource.handlerval sink : (module SINK with type t = 't) -> ('t, sink_ty) Resource.handlerval shutdown :
(module SHUTDOWN with type t = 't) ->
('t, shutdown_ty) Resource.handlermodule type TWO_WAY = sig ... endval two_way :
(module TWO_WAY with type t = 't) ->
('t, two_way_ty) Resource.handlertype Resource.pi += | Source : ('t, (module SOURCE with type t = 't), [> source_ty ]) Resource.pi| Sink : ('t, (module SINK with type t = 't), [> sink_ty ]) Resource.pi| Shutdown : ('t, (module SHUTDOWN with type t = 't), [> shutdown_ty ])
Resource.pi