package async_kernel

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

Deprecates functions that use wall-clock time, so that code must be explicit about what time source is used.

Idiomatic usage is:

open! Require_explicit_time_source 

or, in an import.ml:

include Require_explicit_time_source 
module Clock_ns : sig ... end
module Time_ns : sig ... end
module Time : sig ... end
module Async_kernel_scheduler : sig ... end
module Date : sig ... end
val at : Time_ns.t -> unit Deferred.t
  • deprecated [since 2016-02] Use [Time_source]
val after : Time_ns.Span.t -> unit Deferred.t
  • deprecated [since 2016-02] Use [Time_source]
val every : ?start:unit Deferred.t -> ?stop:unit Deferred.t -> ?continue_on_error:bool -> Time_ns.Span.t -> (unit -> unit) -> unit
  • deprecated [since 2016-02] Use [Time_source]
val with_timeout : Time_ns.Span.t -> 'a Deferred.t -> [ `Timeout | `Result of 'a ] Deferred.t
  • deprecated [since 2016-02] Use [Time_source]
OCaml

Innovation. Community. Security.