Skip to content

Conversation

ffrostfall
Copy link
Contributor

This PR implements task.delay in the form of <T..., U...>(dur: number | time.Duration, routine: (T...) -> U..., ...: T...).

yieldLuaStateFor was also changed to accept an nargs parameter, to support using that function for task.delay.

Closes #260

Copy link
Collaborator

@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.

Small nits, but overall looks good.

ffrostfall and others added 2 commits September 20, 2025 17:09
Co-authored-by: ariel <aweiss@hey.com>
Co-authored-by: ariel <aweiss@hey.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Legacy task.spawn(() -> () | thread), task.delay(number () -> ()) functions
2 participants