Skip to content

Commit

Permalink
doc: mention native modules in worker-threads, closes #1603
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Nov 25, 2022
1 parent 39086be commit 2461af1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ Lambda handlers for the `node.js` runtime can run in different execution modes w
- global state is not being shared across handlers
- easy debugging

NOTE:

- native modules need to be a Node-API addon or be declared as context-aware using NODE_MODULE_INIT(): https://nodejs.org/docs/latest/api/addons.html#worker-support

#### in-process

- handlers run in the same context (instance) as `serverless` and `serverless-offline`
Expand Down

0 comments on commit 2461af1

Please sign in to comment.