package archi

  1. Overview
  2. Docs

Module Make.SystemSource

Sourcetype (_, _, _) components =
  1. | [] : ('ctx, 'ty, 'ty) components
  2. | :: : (string * ('ctx, 'a) Component.t) * ('ctx, 'b, 'ty) components -> ('ctx, 'a -> 'b, 'ty) components
Sourcetype ('ctx, _, _) t
Sourceval make : ('ctx, 'args, unit) components -> ('ctx, unit, [ `stopped ]) t
Sourceval make_reusable : lift:'args -> ('ctx, 'args, 'ty) components -> ('ctx, 'ty, [ `stopped ]) t
Sourceval start : 'ctx -> ('ctx, 'ty, [ `stopped ]) t -> (('ctx, 'ty, [ `started ]) t, [ `Cycle_found | `Msg of string ]) result Io.t
Sourceval stop : ('ctx, 'ty, [ `started ]) t -> (('ctx, 'ty, [ `stopped ]) t, [ `Cycle_found | `Msg of string ]) result Io.t
Sourceval get : ('ctx, 'ty, [ `started ]) t -> 'ty
OCaml

Innovation. Community. Security.