module Async:sig..end
Duppy
This module implements an asychronous API to Duppy.scheduler
It allows to create a task that will run and then go to sleep.
type t
exception Stoped
val add : priority:'a -> 'a Duppy.scheduler -> (unit -> unit) -> tadd ~priority s f creates an asynchronous task in s with
priority priority.
The task executes the function f, and go to sleep.
Use wake_up to resume the task and execute f again.
val wake_up : t -> unitStoped if the task has been stoped.val stop : t -> unitStoped if the task has been stoped.