async.nvim icon indicating copy to clipboard operation
async.nvim copied to clipboard

Change assumption in the `wait` function

Open anuvyklack opened this issue 1 year ago • 0 comments

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.

anuvyklack avatar Feb 11 '23 13:02 anuvyklack