Skip to content
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

Change assumption in the wait function #3

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

anuvyklack
Copy link
Contributor

@anuvyklack anuvyklack commented Feb 11, 2023

Make wait work the next way

local function f(p1, p2, callback) ... end

async.wait(f, p1, p2)

So on call wait function without first argc argument, the wait function will assume, that the number of arguments is equal to number of passed arguments + 1 for callback, that hasn't been passed.

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