package sihl

  1. Overview
  2. Docs
The modular functional web framework

Install

Dune Dependency

Authors

Maintainers

Sources

sihl-queue-0.1.8.tbz
sha256=e77ffae26dac04e446ff07854de68a03edfd05031b5cb0dbcb6dc4a96e2d1c8e
sha512=7682c55136dbb8c68517ccd2c157a3556d966cb8565d15cf21ab270f92ea7e9ee5d3ac1479ba2e34a80f3052ca5dd1a74e964a8764c2164e3e71e9048fcdf51b

doc/sihl.queue/Sihl_queue_core/Job/index.html

Module Sihl_queue_core.JobSource

Sourceval default_tries : int
Sourceval default_retry_delay : Sihl_utils.Time.duration
Sourcetype 'a t = {
  1. name : string;
  2. with_context : Sihl_core.Ctx.t -> Sihl_core.Ctx.t;
  3. input_to_string : 'a -> string option;
  4. string_to_input : string option -> ('a, string) Result.t;
  5. handle : Sihl_core.Ctx.t -> input:'a -> (unit, string) Result.t Lwt.t;
  6. failed : Sihl_core.Ctx.t -> (unit, string) Result.t Lwt.t;
  7. max_tries : int;
  8. retry_delay : Sihl_utils.Time.duration;
}
Sourceval retry_delay : 'a t -> Sihl_utils.Time.duration
Sourceval max_tries : 'a t -> int
Sourceval failed : 'a t -> Sihl_core.Ctx.t -> (unit, string) Result.t Lwt.t
Sourceval handle : 'a t -> Sihl_core.Ctx.t -> input:'a -> (unit, string) Result.t Lwt.t
Sourceval string_to_input : 'a t -> string option -> ('a, string) Result.t
Sourceval input_to_string : 'a t -> 'a -> string option
Sourceval with_context : 'a t -> Sihl_core.Ctx.t -> Sihl_core.Ctx.t
Sourceval name : 'a t -> string
Sourcemodule Fields : sig ... end
Sourceval create : name:string -> ?with_context:(Sihl_core.Ctx.t -> Sihl_core.Ctx.t) -> input_to_string:('a -> string option) -> string_to_input:(string option -> ('a, string) Result.t) -> handle:(Sihl_core.Ctx.t -> input:'a -> (unit, string) Result.t Lwt.t) -> ?failed:(Sihl_core.Ctx.t -> (unit, string) Lwt_result.t) -> unit -> 'a t
Sourceval set_max_tries : int -> 'a t -> 'a t
Sourceval set_retry_delay : Sihl_utils.Time.duration -> 'a t -> 'a t
OCaml

Innovation. Community. Security.