Skip to content

Commit 0e8149c

Browse files
committed
docs.
1 parent f4a17eb commit 0e8149c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,17 @@ Creates for the current async resource an execution context entry identified wit
6363
Any future processes that will be added to the async execution chain will be exposed to this context.
6464

6565
### update(update: object)
66+
6667
Updates the current execution context with a given update obect.
6768

6869
### get()
6970

7071
Returns the current execution context identified with the current asyncId.
7172

73+
### run(fn: Function, initialContext: object)
74+
75+
Runs a given function under a dedicated AsyncResource, exposing given initial context to the process and it's child processes.
76+
7277
### API Usage
7378

7479

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-execution-context",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Provides execution context wrapper for node JS, can be used to create execution wrapper for handling requests and more",
55
"author": "Oded Goldglas <[email protected]>",
66
"license": "ISC",

0 commit comments

Comments
 (0)