package sihl-core

  1. Overview
  2. Docs

Module Sihl_core.ScheduleSource

Sourcetype scheduled_time =
  1. | Every of Time.duration
Sourcetype t = {
  1. label : string;
  2. scheduled_time : scheduled_time;
  3. fn : unit -> unit Lwt.t;
}
Sourceval fn : t -> unit -> unit Lwt.t
Sourceval scheduled_time : t -> scheduled_time
Sourceval label : t -> string
Sourcemodule Fields : sig ... end
Sourcetype stop_schedule = unit -> unit
Sourceval get_function : t -> unit -> unit Lwt.t
Sourceval run_in : t -> now:'a -> float
Sourceval scheduled_function : t -> unit -> unit Lwt.t
Sourceval create : scheduled_time -> f:(unit -> unit Lwt.t) -> label:string -> t
Sourceval every_second : scheduled_time
Sourceval every_hour : scheduled_time
Sourceval log_src : Logs.src
Sourceval registered_schedules : t list ref
Sourceval schedule : t -> unit -> unit
Sourceval start : 'a -> 'a Lwt.t
Sourceval stop : 'a -> unit Lwt.t
Sourceval register : ?schedules:t list -> unit -> Container.Service.t
OCaml

Innovation. Community. Security.