GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — node/test/parallel/test-async-local-storage-snapshot.js at main · synapse/node Expand file tree/ Copy pathtest-async-local-storage-snapshot.jsMore file actions 16 lines (14 loc) · 495 Bytes / Copy pathtest-async-local-storage-snapshot.jsFile metadata and controls16 lines (14 loc) · 495 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 'use strict'; const common = require('../common'); const { strictEqual } = require('assert'); const { AsyncLocalStorage } = require('async_hooks'); const asyncLocalStorage = new AsyncLocalStorage(); const runInAsyncScope = asyncLocalStorage.run(123, common.mustCall(() => AsyncLocalStorage.snapshot())); const result = asyncLocalStorage.run(321, common.mustCall(() => { return runInAsyncScope(() => { return asyncLocalStorage.getStore(); }); })); strictEqual(result, 123); |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |