Module AsyncTaskQueue
- module type Task = sig ... end
- The - Taskmodule type defines an abstract message-processing queue.
- type cancel_switch- = bool Stdlib.ref
- cancel_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 ... end
- Client-side functor. - MakeQueue Tcreates a task queue for task- T
- module MakeWorker : functor (T : Task) -> functor () sig ... end
- Server-side functor. - MakeWorker Tcreates the server task dispatcher.