Skip to content

Commit

Permalink
Add documentation for Env().
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node-addon-api#318
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Nicola Del Gobbo <[email protected]>
  • Loading branch information
wroy7860 committed Sep 6, 2018
1 parent 8397d0d commit 15a7d6c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/promises.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ Promise::Deferred(napi_env env);

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

### Env

```cpp
Napi::Env Env() const;
```

Returns the Env environment this Promise::Deferred object is associated with.

### Promise

```cpp
Expand Down

0 comments on commit 15a7d6c

Please sign in to comment.