j
k
j a
j l
Simply make sure to use Event()->wait() instead of Event()->get(), and the process will sleep until it receives the next event. If you want to return -1 from main, just create a separate thread for the event loop.
Back to the thread
Back to the list