package ocaml-webworker

  1. Overview
  2. Docs
type title = string
type section = string
val time : float Pervasives.ref
val reset_time : unit -> unit
val delta_time : unit -> float
val destination : Pervasives.out_channel option Pervasives.ref
val output_section : Pervasives.out_channel -> string -> string -> unit
val log : string -> string -> string -> unit
val logf : string -> string -> ('a, unit, string, unit) Pervasives.format4 -> 'a
val logfmt : string -> string -> (Std.Format.formatter -> 'a) -> unit
val logj : string -> string -> (unit -> Std.Json.t) -> unit
val notifications : (section * string) list Pervasives.ref option Pervasives.ref
val notify : section -> ('a, unit, string, unit) Pervasives.format4 -> 'a
val with_notifications : (section * string) list Pervasives.ref -> (unit -> 'a) -> 'a
val with_log_file : string option -> (unit -> 'a) -> 'a
OCaml

Innovation. Community. Security.