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
Having complex systems with various variables could result in leaking unintended values to subsystems. It might be reasonable to have something like AsyncContext.sandbox(() => {... }) which reset's all the state, preventing parents to interfere.
constasyncVar=newAsyncContext.Variable();// Sets the current value to 'top', and executes the `main` function.asyncVar.run("top",main);functionmain(){AsyncContext.sandbox(()=>{console.log(asyncVar.get());// => undefined});}
The text was updated successfully, but these errors were encountered:
Having complex systems with various variables could result in leaking unintended values to subsystems. It might be reasonable to have something like
AsyncContext.sandbox(() => {... })
which reset's all the state, preventing parents to interfere.The text was updated successfully, but these errors were encountered: