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