package async_kernel

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

Module Synchronous_time_source.EventSource

include module type of struct include T1.Event end
Sourcemodule Status = T1.Event.Status
Sourcetype event
Sourceval sexp_of_event : event -> Ppx_sexp_conv_lib.Sexp.t
Sourcemodule Option = T1.Event.Option
Sourcetype 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 : Execution_context.t;
  5. mutable interval : Time_ns.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 interval : t -> Time_ns.Span.t option
Sourceval set_interval : t -> Time_ns.Span.t option -> unit
Sourceval execution_context : t -> Execution_context.t
Sourceval callback : t -> unit -> unit
Sourceval set_at : t -> Time_ns.t -> unit
Sourceval alarm : t -> Async_kernel__.Types.Job_or_event.t Alarm.t
Sourceval set_alarm : t -> Async_kernel__.Types.Job_or_event.t Alarm.t -> unit
Sourcemodule Fields = T1.Event.Fields
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 -> Time_ns.t
Sourceval create_internal : 'a T1.t -> at:Time_ns.t -> interval:Time_ns.Span.t option -> callback:(unit -> unit) -> t
Sourceval add : 'a T1.t -> t -> unit
Sourceval create_and_add : 'a T1.t -> at:Time_ns.t -> interval:Time_ns.Span.t option -> callback:(unit -> unit) -> t
Sourceval at : 'a T1.t -> Time_ns.t -> (unit -> unit) -> t
Sourceval after : 'a T1.t -> Time_ns.Span.t -> (unit -> unit) -> t
Sourceval require_span_at_least_alarm_precision : 'a T1.t -> Time_ns.Span.t -> unit
Sourceval at_intervals : ?start:Core.Time_ns.t -> 'a T1.t -> Time_ns.Span.t -> (unit -> unit) -> t
Sourcemodule Abort_result : sig ... end
Sourceval abort : 'a T1.t -> t -> Abort_result.t
Sourceval abort_if_possible : 'a T1.t -> t -> unit
Sourceval abort_exn : 'a T1.t -> t -> unit
Sourceval create : 'a T1.t -> (unit -> unit) -> t
Sourceval is_scheduled : t -> bool
Sourceval schedule_at_internal : 'a T1.t -> t -> Time_ns.t -> interval:Time_ns.Span.t option -> unit Core.Or_error.t
Sourceval schedule_at : 'a T1.t -> t -> Time_ns.t -> unit Core.Or_error.t
Sourceval schedule_after : 'a T1.t -> t -> Time_ns.Span.t -> unit Core.Or_error.t
Sourceval schedule_at_intervals' : 'a T1.t -> t -> Time_ns.Span.t -> starting_at:Time_ns.t -> unit Core.Or_error.t
Sourceval schedule_at_intervals : 'a T1.t -> t -> Time_ns.Span.t -> unit Core.Or_error.t
Sourceval reschedule_at : 'a T1.t -> t -> Time_ns.t -> unit
Sourceval reschedule_after : 'a T1.t -> t -> Time_ns.Span.t -> unit
OCaml

Innovation. Community. Security.