# Declare an event that carries no payload DoorOpened : event() = event(){} # Somewhere, an async function waits for it: # DoorOpened.Await() # pauses here until... # ...somewhere else, code fires it: # DoorOpened.Signal() # ...this runs, and the Await above wakes up