CancelSource.token

CancelToken token() @trusted nothrow @nogc

Get a cancellation token for this source.

Returns

A token pointing to this source's state.