From a3951ab973b7f65723b5ce64b58417e2a44a8ea2 Mon Sep 17 00:00:00 2001 From: Rolf Timmermans Date: Thu, 30 Aug 2018 08:39:10 +0200 Subject: [PATCH] Add documentation for Env(). PR-URL: https://github.com/nodejs/node-addon-api/pull/318 Reviewed-By: Michael Dawson Reviewed-By: Nicola Del Gobbo --- doc/promises.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/promises.md b/doc/promises.md index f0bf8a61d..e67483bbb 100644 --- a/doc/promises.md +++ b/doc/promises.md @@ -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