Skip to content

C3Http.CancellationToken

Inherits: RefCounted

Token passed to cancellation_token to cancel an in-flight request from another coroutine or signal handler.

Methods

Returns Signature
void cancel()
bool is_cancelled()

Method Descriptions

cancel

func cancel() -> void:

Cancels any in-flight request holding this token. Subsequent calls have no effect.

is_cancelled

func is_cancelled() -> bool:

Returns true if cancel() has been called.