-
Consider the following code:
```js
import { AsyncLocalStorage, createHook } from 'node:async_hooks';
import { notEqual } from 'assert/strict';
const hook = createHook({
init () {},
})
/…
-
Hey! Thanks so much for this library, it is so useful and I wonder why it is not more widely used, due to the importance of the problem it solves.
One obvious thing where it could become even bette…
-
The new AsyncLocalStorage API, introduced with Nodejs 13.10.0, is a great tool for improving logging, security and other aspects of the framework. It can be used, for example, to store request data li…
-
### Version
v20.3.0
### Platform
Linux 5.19.0-46-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 21 15:35:31 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
### Subsystem
async_hooks
###…
-
VSCode (& presumably tsc) complains with:
```
Cannot find module 'node:async_hooks' or its corresponding type declarations.ts(2307)
```
I have the compatibility flag set in wrangler.
I don't se…
-
### **Description of Bug**
`AsyncLocalStorage` doesn't work well with `async`/`await`
### **Steps to Reproduce**
1. Go to https://stackblitz.com/edit/stackblitz-starters-pkxqds?file=index.m…
-
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…
-
Since node 13 AsyncLocalStorage has been added.
https://nodejs.org/api/async_hooks.html#async_hooks_class_asynclocalstorage
I think we should port to that.
The API looks fairly clean.
-
### Link to the code that reproduces this issue
https://github.com/72L/failed-to-find-server-action
### To Reproduce
1. Deploy repro repo to Heroku app: `heroku git:remote -a [your-app]` and `git p…