package sihl

  1. Overview
  2. Docs
The Sihl web framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

2.0.1.tar.gz
md5=52b28d3faac0a2243735285aa3f962aa
sha512=e7ff89bdba9f1afa3b115a056ae3d403f602685187a968485ea64a7cd1a18791f66b7480b682bf66acd3564dd89139162779d58a43c2389d785c98e246094a18

doc/sihl/Sihl/Schedule/index.html

Module Sihl.ScheduleSource

Sourcetype scheduled_time =
  1. | Every of Sihl__.Core_time.duration
Sourcetype t = {
  1. label : string;
  2. scheduled_time : scheduled_time;
  3. fn : unit -> unit Lwt.t;
}
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 -> (unit -> unit Lwt.t) -> 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 lifecycle : Sihl__.Core_lifecycle.lifecycle
Sourceval register : t list -> Sihl__.Core_service.t