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
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
It would be great to be able to define the parameters for the function that is called inside the domain.run(fn) method.
I propose this API change: domain.run(fn, [arg1], [arg2], [...])
An example of use:
functionjustDoSomething(a,b,c){/* do something else */returna+b+c;}mathDomain.run(justDoSomething,1,2,3);
This approach would allow to use values from the current context and run a function that is outside of this context as it is implemented in setTimeout() or setInterval().
The text was updated successfully, but these errors were encountered:
It would be great to be able to define the parameters for the function that is called inside the
domain.run(fn)
method.I propose this API change:
domain.run(fn, [arg1], [arg2], [...])
An example of use:
This approach would allow to use values from the current context and run a function that is outside of this context as it is implemented in
setTimeout()
orsetInterval()
.The text was updated successfully, but these errors were encountered: