package eio

  1. Overview
  2. Docs
Effect-based direct-style IO API for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

eio-0.7.tbz
sha256=675e67f343ccf37b965d15d1ee1c639d7a06431e8f08e95559133419f3488ee1
sha512=3d1bd0e5e0aa79d8858d83944d734a0efc325ed66a12a1506c3b36281db56c0216e6cb90a46e6021db1ea34cdd2567ebabe0bd687d9989495bb7cf6099e90ba7

doc/eio.mock/Eio_mock/Clock/index.html

Module Eio_mock.ClockSource

A mock Eio.Time clock for testing timeouts.

Sourcemodule type S = sig ... end
include S with type time := float
Sourcetype t = < float Eio.Time.clock_base ; advance : unit ; set_time : float -> unit >
Sourceval make : unit -> t

make () is a new clock.

The time is initially set to 0.0 and doesn't change except when you call advance or set_time.

Sourceval advance : t -> unit

advance t sets the time to the next scheduled event (adding any due fibers to the run queue).

Sourceval set_time : t -> float -> unit

set_time t time sets the time to time (adding any due fibers to the run queue).

Sourcemodule Mono : S with type time := Mtime.t
OCaml

Innovation. Community. Security.