src/misc/event

Source   Edit  

Types

Event[T] = object
Source   Edit  

Procs

proc invoke[T: void](event: var Event[T])
Source   Edit  
proc invoke[T](event: var Event[T]; arg: T)
Source   Edit  
proc subscribe[T: void](event: var Event[T]; callback: () -> void): Id
Source   Edit  
proc subscribe[T](event: var Event[T]; callback: (T) -> void): Id
Source   Edit  
proc unsubscribe[T](event: var Event[T]; id: Id)
Source   Edit