summaryrefslogtreecommitdiff
path: root/doc/api/n-api.md
diff options
context:
space:
mode:
authorGabriel Schulhof <gabriel.schulhof@intel.com>2019-01-17 22:09:48 -0800
committerGabriel Schulhof <gabriel.schulhof@intel.com>2019-01-21 22:30:11 -0800
commit11387e1454d8b8311dfdb1bac6a7ec1a1494946d (patch)
treee0368510a96393a1827346cd0ed0db8069aa3741 /doc/api/n-api.md
parent2c9e12e49656fa194376cf01356bc964e0d9161b (diff)
downloadandroid-node-v8-11387e1454d8b8311dfdb1bac6a7ec1a1494946d.tar.gz
android-node-v8-11387e1454d8b8311dfdb1bac6a7ec1a1494946d.tar.bz2
android-node-v8-11387e1454d8b8311dfdb1bac6a7ec1a1494946d.zip
n-api: mark thread-safe function as stable
Fixes: https://github.com/nodejs/node/issues/24249 PR-URL: https://github.com/nodejs/node/pull/25556 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'doc/api/n-api.md')
-rw-r--r--doc/api/n-api.md22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/api/n-api.md b/doc/api/n-api.md
index fa30b8290f..2b061167f6 100644
--- a/doc/api/n-api.md
+++ b/doc/api/n-api.md
@@ -282,7 +282,7 @@ This is an opaque pointer that is used to represent a JavaScript value.
### napi_threadsafe_function
-> Stability: 1 - Experimental
+> Stability: 2 - Stable
This is an opaque pointer that represents a JavaScript function which can be
called asynchronously from multiple threads via
@@ -290,7 +290,7 @@ called asynchronously from multiple threads via
### napi_threadsafe_function_release_mode
-> Stability: 1 - Experimental
+> Stability: 2 - Stable
A value to be given to `napi_release_threadsafe_function()` to indicate whether
the thread-safe function is to be closed immediately (`napi_tsfn_abort`) or
@@ -305,7 +305,7 @@ typedef enum {
### napi_threadsafe_function_call_mode
-> Stability: 1 - Experimental
+> Stability: 2 - Stable
A value to be given to `napi_call_threadsafe_function()` to indicate whether
the call should block whenever the queue associated with the thread-safe
@@ -400,7 +400,7 @@ typedef void (*napi_async_complete_callback)(napi_env env,
#### napi_threadsafe_function_call_js
-> Stability: 1 - Experimental
+> Stability: 2 - Stable
Function pointer used with asynchronous thread-safe function calls. The callback
will be called on the main thread. Its purpose is to use a data item arriving
@@ -4526,7 +4526,7 @@ prevent the event loop from exiting. The APIs `napi_ref_threadsafe_function` and
### napi_create_threadsafe_function
-> Stability: 1 - Experimental
+> Stability: 2 - Stable
<!-- YAML
added: v10.6.0
@@ -4569,7 +4569,7 @@ parameters and with `undefined` as its `this` value.
### napi_get_threadsafe_function_context
-> Stability: 1 - Experimental
+> Stability: 2 - Stable
<!-- YAML
added: v10.6.0
@@ -4587,7 +4587,7 @@ This API may be called from any thread which makes use of `func`.
### napi_call_threadsafe_function
-> Stability: 1 - Experimental
+> Stability: 2 - Stable
<!-- YAML
added: v10.6.0
@@ -4615,7 +4615,7 @@ This API may be called from any thread which makes use of `func`.
### napi_acquire_threadsafe_function
-> Stability: 1 - Experimental
+> Stability: 2 - Stable
<!-- YAML
added: v10.6.0
@@ -4637,7 +4637,7 @@ This API may be called from any thread which will start making use of `func`.
### napi_release_threadsafe_function
-> Stability: 1 - Experimental
+> Stability: 2 - Stable
<!-- YAML
added: v10.6.0
@@ -4665,7 +4665,7 @@ This API may be called from any thread which will stop making use of `func`.
### napi_ref_threadsafe_function
-> Stability: 1 - Experimental
+> Stability: 2 - Stable
<!-- YAML
added: v10.6.0
@@ -4686,7 +4686,7 @@ This API may only be called from the main thread.
### napi_unref_threadsafe_function
-> Stability: 1 - Experimental
+> Stability: 2 - Stable
<!-- YAML
added: v10.6.0