package bistro

  1. Overview
  2. Docs
type t = {
  1. logger : Logger.t;
  2. db : Db.t;
  3. allocator : Allocator.t;
}
type token = unit
val create : ?np:int -> ?mem:[ `GB of int ] -> ?loggers: < event : Db.t -> Logger.time -> Logger.event -> unit ; stop : unit Lwt.t.. > list -> Db.t -> t
val log : ?time:Logger.time -> t -> Logger.event -> unit
val run_shell_command : 'a -> unit -> Shell_command.t -> (int * bool, string) Core.Result.t Lwt.t
val eval : 'a -> unit -> ('b -> 'c) -> 'b -> (unit, string) Core.result Lwt.t
val build_trace : t -> 'a Bistro_internals.Workflow.t -> Allocator.request -> (unit -> Allocator.resource -> (Execution_trace.Run_details.t, Bistro_engine.Execution_trace.Set.t) Lwt_result.t) -> (Execution_trace.t, Bistro_engine.Execution_trace.Set.t) Stdlib.result Lwt.t
val stop : 'a -> unit Lwt.t
OCaml

Innovation. Community. Security.