EventLoop.getCancelToken

CancelToken getCancelToken(Token token) @safe nothrow @nogc

Get the cancellation token associated with a watcher.

Parameters

tokenWatcher token.

Returns

Associated cancellation token, or CancelToken.invalid.