buildgrid.server.utils.cancellation module

class buildgrid.server.utils.cancellation.CancellationContext(context: ServicerContext)

Bases: object

is_cancelled() bool
on_cancel(callback: Callable[[], None]) None