Module AsyncTaskQueue
module type Task = sig ... endThe
Taskmodule type defines an abstract message-processing queue.
type cancel_switch= bool Stdlib.refcancel_switchto be flipped to true by anyone to signal the task is not relevant anymore. When the STM performs an undo/edit-at, it crawls the document and flips these flags (the Qed node carries a pointer to the flag IIRC).
module MakeQueue : functor (T : Task) -> functor () sig ... endClient-side functor.
MakeQueue Tcreates a task queue for taskT
module MakeWorker : functor (T : Task) -> functor () sig ... endServer-side functor.
MakeWorker Tcreates the server task dispatcher.