SummerOperation ยท Inherits: RefCounted
Single-terminal asynchronous operation for the Summer runtime.
Completes exactly once on the main thread with a SummerResult. Deferred operations are owned by a revocable Summer queue until terminal queue cleanup, including cancellation, so dropping the caller reference cannot strand a queued completion. Use get_result_or_completed_signal() when awaiting from GDScript so a synchronously published scheduling failure cannot be missed. Scene module teardown revokes queued dispatch and publishes cancellation without invoking script callbacks. Scripts may observe or cancel an engine-created operation but cannot construct or complete one.
Properties
Methods
cancel
true only when cancellation wins while pending. The terminal result then has code &"cancelled".
Returns: bool
get_result_or_completed_signal
SummerResult when already complete, or the completed signal while pending. On the main thread, var result: SummerResult = await operation.get_result_or_completed_signal() is race-free even when deferred scheduling fails synchronously before the operation is returned. Do not await completed directly unless the pending state was established without a gap.
Returns: Variant
is_cancelled
STATE_CANCELLED.
Returns: bool
is_completed
is_pending
Signals
completed
Enums and constants
State
What is live on the platform today: platform capability status. Check availability at runtime before you offer a feature.

