package bonsai

  1. Overview
  2. Docs
type ('input, 'incoming, 'outgoing) t

A handle represents a running app, and can be used to schedule external actions, determine if the app has started, and stop the app.

val stop : (_, _, _) t -> unit
val started : (_, _, _) t -> unit Async_kernel.Deferred.t
val schedule : (_, 'incoming, _) t -> 'incoming -> unit
val set_input : ('input, _, _) t -> 'input -> unit
val outgoing : (_, _, 'outgoing) t -> 'outgoing Async_kernel.Pipe.Reader.t
OCaml

Innovation. Community. Security.