Skip to content

Implement task.resume#218

Merged
aatxe merged 4 commits intoluau-lang:primaryfrom
ffrostfall:task-resume-api
May 4, 2025
Merged

Implement task.resume#218
aatxe merged 4 commits intoluau-lang:primaryfrom
ffrostfall:task-resume-api

Conversation

@ffrostfall
Copy link
Copy Markdown
Contributor

Implements issue #166 by implementing an error reporter method on the Runtime class, and implementing task.resume(thread, ...).

Comment on lines +7 to +8
// taken from extern/luau/VM/lcorolib.cpp
static const char* const statnames[] = {"running", "suspended", "normal", "dead", "dead"};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this not exposed? If so, is there an API exposed already for getting the name for errors? cc @vegorov-rbx

Co-authored-by: ariel <[email protected]>
Copy link
Copy Markdown
Member

@aatxe aatxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can refactor the array of states later if need be.

@aatxe aatxe merged commit a0e3280 into luau-lang:primary May 4, 2025
6 checks passed
green-real pushed a commit to green-real/lute that referenced this pull request May 19, 2025
Implements issue luau-lang#166 by implementing an error reporter method on the
Runtime class, and implementing `task.resume(thread, ...)`.

---------

Co-authored-by: ariel <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants