-
Take the following case:
```js
const { AsyncLocalStorage } = require('async_hooks');
const als = new AsyncLocalStorage();
process.on('unhandledRejection', () => {
console.log(als.getStore()…
-
I've recently gone through and implemented a subset of the `AsyncLocalStorage` API for Cloudflare's workerd runtime, and I've done so *without* implementing any part of the async_hooks API under the c…
-
Node docs be like:
> We strongly discourage the use of the async_hooks API. Other APIs that can cover most of its use cases include:
> [AsyncLocalStorage](https://nodejs.org/api/async_context.ht…
-
This issue is basically requesting the `deno` equivalent of https://www.npmjs.com/package/@northscaler/continuation-local-storage or https://nodejs.org/dist/latest-v14.x/docs/api/async_hooks.html#asyn…
-
* **Version**: 15.5.0
* **Platform**: MacOS
* **Subsystem**: async_hooks
### What steps will reproduce the bug?
I expected the following program to work:
```js
import {AsyncLocalStorage} f…
-
Hi,
Apologies if this is not the place for this question.
After seeing next.js use `AsyncLocalStorage` I was wondering if it's a bad idea to implement something similar for your own custom data…
-
The current node lts supports using internal async_hooks which does not break in some reasons, [cls-hooks](https://github.com/skonves/express-http-context/blob/e9498012defde15dad819a1b8ed449a7700b7825…
-
As noted in [this article](https://lucumr.pocoo.org/2024/6/5/node-timeout), the timeout/interval objects keep a reference to the store even after they have been cleared.
I think it would be better …
-
### Environment
System:
OS: macOS 13.3.1
CPU: (8) arm64 Apple M1 Pro
Memory: 926.67 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.16.0 - ~/Library/Caches/fnm_mu…
-
This snippet is a basic example using `AsyncLocalStorage` to create a `session` object that is available to any "nested" services. This could be useful in passing things like user, authentication, tra…