package sihl

  1. Overview
  2. Docs
The Sihl web framework

Install

Dune Dependency

Authors

Maintainers

Sources

3.0.4.tar.gz
md5=8a2754d6e5b9eafb8ff332abdb1ceb7d
sha512=3230a1315686b0b6f90a41ceda27ab036e178184ab13d5a98f64d6d987caf4a8a5d94ed78bc8e79b0ee3b40ccbb1dbdc71ffe171f1aef1f18aba81fc720e3a1b

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
OCaml

Innovation. Community. Security.