Skip to content

Commit a3951ab

Browse files
rolftimmermansmhdawson
authored andcommitted
Add documentation for Env().
PR-URL: #318 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Nicola Del Gobbo <[email protected]>
1 parent a6f7a6a commit a3951ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/promises.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ Promise::Deferred(napi_env env);
4141

4242
* `[in] env`: The `napi_env` environment in which to construct the Deferred object.
4343

44+
### Env
45+
46+
```cpp
47+
Napi::Env Env() const;
48+
```
49+
50+
Returns the Env environment this Promise::Deferred object is associated with.
51+
4452
### Promise
4553

4654
```cpp

0 commit comments

Comments
 (0)