package async_kernel

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Scheduler.EventSource

Sourcemodule Status : sig ... end
Sourcetype event
Sourceval sexp_of_event : event -> Ppx_sexp_conv_lib.Sexp.t
Sourcemodule Option : sig ... end
Sourcetype t = {
  1. mutable alarm : Async_kernel__.Types.Job_or_event.t Timing_wheel.Alarm.t;
  2. mutable at : Core.Time_ns.t;
  3. callback : unit -> unit;
  4. execution_context : Execution_context.t;
  5. mutable interval : Core.Core_private.Time_ns_alternate_sexp.Span.t option;
  6. mutable next_fired : Option.t;
  7. mutable prev_fired : Option.t;
  8. mutable status : Status.t;
}
Sourceval status : t -> Status.t
Sourceval prev_fired : t -> Option.t
Sourceval set_prev_fired : t -> Option.t -> unit
Sourceval next_fired : t -> Option.t
Sourceval set_next_fired : t -> Option.t -> unit
Sourceval set_interval : t -> Core.Core_private.Time_ns_alternate_sexp.Span.t option -> unit
Sourceval execution_context : t -> Execution_context.t
Sourceval callback : t -> unit -> unit
Sourceval set_at : t -> Core.Time_ns.t -> unit
Sourceval alarm : t -> Async_kernel__.Types.Job_or_event.t Timing_wheel.Alarm.t
Sourceval set_alarm : t -> Async_kernel__.Types.Job_or_event.t Timing_wheel.Alarm.t -> unit
Sourcemodule Fields : sig ... end
Sourceval invariant : event -> unit
Sourceval set_status : t -> Status.t -> unit
Sourceval set_status_if : is:Status.t -> t -> Status.t -> unit
Sourceval scheduled_at : t -> Core.Time_ns.t
Sourceval create_internal : 'a Async_kernel__.Types.Time_source.t1 -> at:Core.Time_ns.t -> interval:Core.Core_private.Time_ns_alternate_sexp.Span.t option -> callback:(unit -> unit) -> t
Sourceval add : 'a Async_kernel__.Types.Time_source.t1 -> t -> unit
Sourceval create_and_add : 'a Async_kernel__.Types.Time_source.t1 -> at:Core.Time_ns.t -> interval:Core.Core_private.Time_ns_alternate_sexp.Span.t option -> callback:(unit -> unit) -> t
Sourceval at : 'a Async_kernel__.Types.Time_source.t1 -> Core.Time_ns.t -> (unit -> unit) -> t
Sourceval after : 'a Async_kernel__.Types.Time_source.t1 -> Core.Core_private.Time_ns_alternate_sexp.Span.t -> (unit -> unit) -> t
Sourceval require_span_at_least_alarm_precision : 'a Async_kernel__.Types.Time_source.t1 -> Core.Core_private.Time_ns_alternate_sexp.Span.t -> unit
Sourceval at_intervals : ?start:Core.Time_ns.t -> 'a Async_kernel__.Types.Time_source.t1 -> Core.Core_private.Time_ns_alternate_sexp.Span.t -> (unit -> unit) -> t
Sourcemodule Abort_result : sig ... end
Sourceval abort : 'a Async_kernel__.Types.Time_source.t1 -> t -> Abort_result.t
Sourceval abort_if_possible : 'a Async_kernel__.Types.Time_source.t1 -> t -> unit
Sourceval abort_exn : 'a Async_kernel__.Types.Time_source.t1 -> t -> unit
Sourceval create : 'a Async_kernel__.Types.Time_source.t1 -> (unit -> unit) -> t
Sourceval is_scheduled : t -> bool
Sourceval schedule_at_internal : 'a Async_kernel__.Types.Time_source.t1 -> t -> Core.Time_ns.t -> interval:Core.Core_private.Time_ns_alternate_sexp.Span.t option -> unit Core.Or_error.t
Sourceval schedule_at : 'a Async_kernel__.Types.Time_source.t1 -> t -> Core.Time_ns.t -> unit Core.Or_error.t
Sourceval schedule_after : 'a Async_kernel__.Types.Time_source.t1 -> t -> Core.Core_private.Time_ns_alternate_sexp.Span.t -> unit Core.Or_error.t
Sourceval schedule_at_intervals' : 'a Async_kernel__.Types.Time_source.t1 -> t -> Core.Core_private.Time_ns_alternate_sexp.Span.t -> starting_at:Core.Time_ns.t -> unit Core.Or_error.t
Sourceval schedule_at_intervals : 'a Async_kernel__.Types.Time_source.t1 -> t -> Core.Core_private.Time_ns_alternate_sexp.Span.t -> unit Core.Or_error.t
Sourceval reschedule_at : 'a Async_kernel__.Types.Time_source.t1 -> t -> Core.Time_ns.t -> unit
Sourceval reschedule_after : 'a Async_kernel__.Types.Time_source.t1 -> t -> Core.Core_private.Time_ns_alternate_sexp.Span.t -> unit
OCaml

Innovation. Community. Security.