enum Godot::AwaitState

Overview

Status enum representing the completion outcome of an asynchronous await operation.

Defined in:

libgodot/signals/subscription.cr

Enum Members

Completed = 0
TimedOut = 1
Freed = 2

Instance Method Summary

Instance methods inherited from struct Enum

!=(other : Int) : Bool !=, ==(other : Int) : Bool ==

Instance methods inherited from class Object

try?(&)
try?
try?

Instance Method Detail

def completed? : Bool #

Returns true if the operation completed successfully without timing out or being freed.


def disposed? : Bool #

Alias to #freed?.


def freed? : Bool #

Returns true if the target object was freed/disposed before or during the wait.


def ok? : Bool #

Alias to #completed?.


def timed_out? : Bool #

Returns true if the operation timed out.