Skip to content

Instantly share code, notes, and snippets.

View bloeys's full-sized avatar
💭

Omar Mahdi bloeys

💭
View GitHub Profile
@bloeys
bloeys / overloop_example.jai
Last active August 27, 2025 18:16
Example usage code for an Event loop in Jai.
main :: () {
/*
Somewhere in main we start the event loop on a separate thread.
The event loop enables cooperative multi-tasking between tasks. A task is a coroutine.
We call this event loop 'Overloop'.
*/
// Prepare some user data for the event loop (*void)