Module Eio_mock.Clock
A mock Eio.Time clock for testing timeouts.
Note that Backend.run_full provides mock clocks that advance automatically when there is nothing left to do.
module type S = sig ... endinclude Eio_mock.Clock.S with type time := float
type t = float Eio_mock.Clock.ty Eio.Std.rval make : unit -> Eio_mock.Clock.tval advance : Eio_mock.Clock.t -> unitadvance t sets the time to the next scheduled event (adding any due fibers to the run queue).
val try_advance : Eio_mock.Clock.t -> boolLike advance, but returns false instead of raising an exception.
val set_time : Eio_mock.Clock.t -> float -> unitset_time t time sets the time to time (adding any due fibers to the run queue).
module Mono : Eio_mock.Clock.S with type time := Mtime.t