Replies: 1 comment
-
Actually, Lua itself supports this via its builtin
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! I wanted to embed lua in to a project of mine, but I have a requirement that I want to see if this library can meet. I want to be able to have multiple scripts execute cooperatively. This means that they are running on the same thread and sharing the same context, but maintain their own stacks (local variables, functions, etc).
Here is an example scenario:
Obviously wait() is a method that I would have to design and build a scheduler for. But I would want these two scripts to be able to run at the same time. The desired output would be:
Beta Was this translation helpful? Give feedback.
All reactions