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 <michael_dawson@ca.ibm.com>
Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@NickNaso.local>
  • Loading branch information
Marlyfleitas committed Sep 6, 2018
1 parent 8241b41 commit 223f011
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 223f011

Please sign in to comment.