ThreadCancellation.currentThreadId
ulong currentThreadId() static @property @safe @nogc nothrowReturns the current thread's ID for use with cancellation functions.
ulong currentThreadId() static @property @safe @nogc nothrowReturns the current thread's ID for use with cancellation functions.