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) -> 'd -> (unit, string) Core.result Lwt.t
val stop : 'a -> unit Lwt.t