GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: update napi_async_init documentation · nodejs/node@cf88ed8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • n-api.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/n-api.md‎

Copy file name to clipboardExpand all lines: doc/api/n-api.md
+6-1Lines changed: 6 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -4672,8 +4672,13 @@ napi_status napi_async_init(napi_env env,
46724672
```
46734673

46744674
* `[in] env`: The environment that the API is invoked under.
4675-
* `[in] async_resource`: An optional object associated with the async work
4675+
* `[in] async_resource`: Object associated with the async work
46764676
that will be passed to possible `async_hooks` [`init` hooks][].
4677+
In order to retain ABI compatibility with previous versions,
4678+
passing `NULL` for `async_resource` will not result in an error, however,
4679+
this will result incorrect operation of async hooks for the
4680+
napi_async_context created. Potential issues include
4681+
loss of async context when using the AsyncLocalStorage API.
46774682
* `[in] async_resource_name`: Identifier for the kind of resource
46784683
that is being provided for diagnostic information exposed by the
46794684
`async_hooks` API.

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.