using coroutines make the engine crash
The engine is not coroutine friendly. To correct this the lua context must be able to handle multiple states.
TODO :
-
Make a unit test -
Make the engine aware that there can be multiple lua_State* -
Make every events on_something
called on the main thread to avoid confusion