mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
async_hooks: merge run and exit methods
PR-URL: https://github.com/nodejs/node/pull/31950 Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
This commit is contained in:
parent
f7f0441997
commit
50dd63e8ef
12 changed files with 30 additions and 215 deletions
|
@ -16,7 +16,7 @@ async function testAwait() {
|
|||
await foo();
|
||||
assert.notStrictEqual(asyncLocalStorage.getStore(), undefined);
|
||||
assert.strictEqual(asyncLocalStorage.getStore().get('key'), 'value');
|
||||
await asyncLocalStorage.exitSyncAndReturn(testOut);
|
||||
await asyncLocalStorage.exit(testOut);
|
||||
}
|
||||
|
||||
asyncLocalStorage.run(new Map(), () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue