8000 Feature Request: Support Luau continuations · Issue #570 · mlua-rs/mlua · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feature Request: Support Luau continuations #570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
8000
cheesycod opened this issue May 1, 2025 · 2 comments
Closed

Feature Request: Support Luau continuations #570

cheesycod opened this issue May 1, 2025 · 2 comments

Comments

@cheesycod
Copy link
cheesycod commented May 1, 2025

Luau supports continuations in its C API (see pushcclosurek's lua_Continuation argument as one place where it's supported). It would be nice if this was exposed somehow in mlua both as Luau's APIs seem to be increasingly expecting callers to have support for these (especially things like yielding require by string)

In addition, continuations could be useful for implementing concurrency primitives more performantly etc (such as custom task schedulers)

@khvzak
Copy link
Member
khvzak commented May 4, 2025

I don't have plans to support continuations in near future for any Lua version. The current async API covers all needs, works great and is runtime-agnostic. async-friendly "require by string" does not require continuation functions either.

However, I'm happy to review a PR with reasonable support of continuation functions.

@khvzak khvzak closed this as not planned Won't fix, can't repro, duplicate, stale May 4, 2025
@cheesycod
Copy link
Author

I don't have plans to support continuations in near future for any Lua version. The current async API covers all needs, works great and is runtime-agnostic. async-friendly "require by string" does not require continuation functions either.

However, I'm happy to review a PR with reasonable support of continuation functions.

Ah alright, I'll think about opening a PR then if I find myself really needing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0