doc: inconsistent asnycLocalStorage.run()
description
#38022
Labels
async_hooks
Issues and PRs related to the async hooks subsystem.
doc
Issues and PRs related to the documentations.
📗 API Reference Docs Problem
Location
Section of the site where the content exists
Affected URL(s):
Description
In the docs,
asyncLocalStorage.run()
is described as follow:However, the part where the asynchronous operation created within the callback is not accurate.
Referencing from one of the tests from Nodejs repo here
the store is still accessible within the callback of the
setTimeout()
, which is asynchronous.I've tested with a simple fetch, and the store is accessible as intended
https://replit.com/@Darkripper214/ALS
I would conclude that an update to the phrase is warranted.
submit a pull request.
The text was updated successfully, but these errors were encountered: