package async

  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
  • deprecated [since 2016-02] Use [Time_source]
  • deprecated [since 2016-02] Use [Time_source]
val every : ?start:unit Async_kernel.Deferred.t -> ?stop:unit Async_kernel.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 Async_kernel.Deferred.t -> [ `Timeout | `Result of 'a ] Async_kernel.Deferred.t
  • deprecated [since 2016-02] Use [Time_source]
OCaml

Innovation. Community. Security.