NodeWorker.CurrentThreadId property
Gets an integer identifier for the current JS thread. On the corresponding worker object (if there is any), it is available as ThreadId
. This value is unique for each instance inside a single process.
C#
public static int CurrentThreadId { get; }
Exceptions
exception | condition |
---|---|
JSInvalidThreadAccessException | No JS scope was established for the current thread. |
See Also
- class NodeWorker
- namespace Microsoft.JavaScript.NodeApi.Interop