package hardcaml_event_driven_sim

  1. Overview
  2. Docs

Async-like wrapper around schedule_call and schedule_on_change.

module Deferred = Mini_async.Deferred
module Ivar = Mini_async.Ivar
val create_process : (unit -> unit Deferred.t) -> Process.t

Create a process that repeatedly run a given function.

val delay : int -> unit Deferred.t

delay n returns deferred that will be filled after n time steps.

val wait_for_change : Signal_id.t -> unit Deferred.t

wait_for_change sig returns deferred that will be filled when sig changes for the first time.

val wait_forever : unit -> unit Deferred.t
val forever : (unit -> unit Deferred.t) -> unit Deferred.t

Execute given function in an infinite loop.

val current_time : unit -> int
OCaml

Innovation. Community. Security.