package async_unix

  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

We shadow Time_ns and Scheduler from Async_kernel because the local versions have a different interface.

include module type of struct include Async_kernel.Async_kernel_require_explicit_time_source end with module Scheduler := Async_kernel.Async_kernel_require_explicit_time_source.Scheduler with module Time_ns := Async_kernel.Async_kernel_require_explicit_time_source.Time_ns
  • 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 -> Core_kernel.Core_kernel_private.Time_ns_alternate_sexp.Span.t -> (unit -> unit) -> unit
  • deprecated [since 2016-02] Use [Time_source]
  • deprecated [since 2016-02] Use [Time_source]
module Scheduler : sig ... end
module Time : sig ... end
module Time_ns : sig ... end
OCaml

Innovation. Community. Security.