package sel
Module Sel_core.On
Events one can wait for (read data, pull from queues, ...)
namefor debug printingprioritylower integers correspond to high priorities (as in Unix nice), default is 0
type 'a res = ('a, exn) resultval queues :
?priority:int ->
?name:string ->
'b Queue.t ->
'c Queue.t ->
('b -> 'c -> 'a) ->
'a Event.tSynchronization events between two components (e.g. a worker pool and a task queue) and an event (e.g. starting a worker)
Synchronization events between a component and an event
Synchronization events between a component and an event. The queue is emptied, useful to process the contents in batches
val promise :
?priority:int ->
?name:string ->
'b Promise.t ->
('b Promise.state -> 'a) ->
'a Event.t