CancellationToken#

class council.contexts.CancellationToken[source]#

Bases: object

A cancellation token which is initially not set.

cancel() None[source]#

set the cancellation token.

property cancelled: bool#

returns True if the cancellation token is set, otherwise, False