Module Distributed_dsl.Fake_timer_transport

Parameters

module Message : sig ... end
module Peer : sig ... end

Signature

type t
val send : t -> recipient:Peer.t -> Message.t -> unit Core_kernel.Or_error.t Async_kernel.Deferred.t
type tok
val equal_tok : tok -> tok -> bool
val wait : t -> Core_kernel.Time.Span.t -> tok * [ `Cancelled | `Finished ] Async_kernel.Deferred.t
val cancel : t -> tok -> unit
include Temporal_intf with type t := t
val create : now:Core_kernel.Time.Span.t -> t
val tick_forwards : t -> unit Async_kernel.Deferred.t
val stop_listening : t -> me:Peer.t -> unit