You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const[error,data] ?=awaitunstableTimeout(arg1,arg2)// should becomeconst[error,data]=awaitunstableTimeout[Symbol.result](arg1,arg2)
So unstableTimeout[Symbol.result] will return me [Error1, null] or [null, promise] - tuple that is not awaitable.
I just don't understand how it should work. For const [err, data] = unstableTimeout(n), I expect to get in err - Error1, Error2 or null, in data - "done" or null. But provided polyfill does not do this.
Could you please explain more on this matter?
The text was updated successfully, but these errors were encountered:
As noted in "Recursive Handling" of the README, results are recursively handled so unstableTimeout[Symbol.result] will return [Error1, null | undefined], [Error2, null | undefined], or [null, "done"] (as you expect).
Let say I have this function:
from polyfill section:
So
unstableTimeout[Symbol.result]
will return me[Error1, null]
or[null, promise]
- tuple that is not awaitable.I just don't understand how it should work. For
const [err, data] = unstableTimeout(n)
, I expect to get inerr
-Error1
,Error2
ornull
, indata
-"done"
ornull
. But provided polyfill does not do this.Could you please explain more on this matter?
The text was updated successfully, but these errors were encountered: