From 15a7d6c99f3ee3afdac3a6fa513fdc7b7d336b36 Mon Sep 17 00:00:00 2001 From: Roy Wright 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 f0bf8a6..e67483b 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