package async

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include T1.Event end
module Status = T1.Event.Status
type t = {
  1. mutable alarm : Async_kernel__.Types.Job_or_event.t Alarm.t;
  2. mutable at : Time_ns.t;
  3. callback : unit -> unit;
  4. execution_context : Async_kernel.Execution_context.t;
  5. mutable interval : Time_ns.Span.t option;
  6. mutable next_fired : t;
  7. mutable status : Status.t;
}
val status : t -> Status.t
val next_fired : t -> t
val set_next_fired : t -> t -> unit
val interval : t -> Time_ns.Span.t option
val set_interval : t -> Time_ns.Span.t option -> unit
val execution_context : t -> Async_kernel.Execution_context.t
val callback : t -> unit -> unit
val set_at : t -> Time_ns.t -> unit
val alarm : t -> Async_kernel__.Types.Job_or_event.t Alarm.t
val set_alarm : t -> Async_kernel__.Types.Job_or_event.t Alarm.t -> unit
module Fields = T1.Event.Fields
val none : t
val is_none : t -> bool
val is_some : t -> bool
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val invariant : t -> unit
val compare_at : t -> t -> int
val set_status : t -> Status.t -> unit
val create_internal : 'a T1.t -> at:Time_ns.t -> interval:Time_ns.Span.t option -> callback:(unit -> unit) -> t
val add : 'a T1.t -> t -> unit
val create_and_add : 'a T1.t -> at:Time_ns.t -> interval:Time_ns.Span.t option -> callback:(unit -> unit) -> t
val at : 'a T1.t -> Time_ns.t -> (unit -> unit) -> t
val after : 'a T1.t -> Time_ns.Span.t -> (unit -> unit) -> t
val require_span_at_least_alarm_precision : 'a T1.t -> Time_ns.Span.t -> unit
val at_intervals : 'a T1.t -> Time_ns.Span.t -> (unit -> unit) -> t
module Abort_result : sig ... end
val abort : 'a T1.t -> t -> Abort_result.t
val abort_if_possible : 'a T1.t -> t -> unit
val abort_exn : 'a T1.t -> t -> unit
val create : 'a T1.t -> (unit -> unit) -> t
val schedule_at_internal : 'a T1.t -> t -> Time_ns.t -> interval:Time_ns.Span.t option -> unit Core_kernel.Or_error.t
val schedule_at : 'a T1.t -> t -> Time_ns.t -> unit Core_kernel.Or_error.t
val schedule_after : 'a T1.t -> t -> Time_ns.Span.t -> unit Core_kernel.Or_error.t
val schedule_at_intervals : 'a T1.t -> t -> Time_ns.Span.t -> unit Core_kernel.Or_error.t