Package Event - Palamecia/mint GitHub Wiki

Description

The Event package provides classes to send and schedule events. The core class of this package is Event.Watcher which schedule events. Most of the classes of this package can be activated to trigger the watcher.

Example:

load event.watcher
load event.event

watcher = Event.Watcher()
event1 = Event.Event()
event2 = Event.Event()
event3 = Event.Event()

watcher.watch(event1)
watcher.watch(event2)
watcher.watch(event3)

// waits for 10000ms or for an event activation
for event in watcher.poll(10000) {
	// handle event
}

The event classes of this package are thread safe and meaned to be used to performe inter-thread communication.

Classes

⚠️ **GitHub.com Fallback** ⚠️