Skip to content

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 ​

exceptioncondition
JSInvalidThreadAccessExceptionNo JS scope was established for the current thread.

See Also ​

Released under the MIT license