class
Godot::TypedSignal(*T)
- Godot::TypedSignal(*T)
- Godot::BoundSignal
- Reference
- Object
Overview
Strongly-typed signal binding offering compile-time type safety for signal connections and await.
Defined in:
libgodot/object.crConstructors
Instance Method Summary
-
#await(timeout_sec : Float64 | Nil = nil)
Cooperatively awaits this typed signal returning unboxed values or tuple
-
#await(timeout_sec : Number)
Cooperatively awaits this signal with timeout in seconds
-
#connect(flags : ConnectFlags = ConnectFlags::None, &block : *T -> Void) : SignalSubscription
Type-safe connect with automatic unboxing into block parameters
-
#connect_one_shot(&block : *T -> Void) : SignalSubscription
Backwards-compatibility helper redirecting to ConnectFlags::OneShot
Instance methods inherited from class Godot::BoundSignal
alive? : Bool
alive?,
await(timeout_sec : Float64 | Nil = nil) : Array(Variant)await(timeout_sec : Number) : Array(Variant) await, connect(flags : ConnectFlags = ConnectFlags::None, callback : Proc(Array(Variant), Void) | Nil = nil) : SignalSubscription
connect(flags : ConnectFlags = ConnectFlags::None, &block : Array(Variant) -> Void) : SignalSubscription
connect(listener_target : Godot::Object, method_name : Symbol, flags : ConnectFlags = ConnectFlags::None) : SignalSubscription connect, connect_one_shot(&block : Array(Variant) -> Void) : SignalSubscription connect_one_shot, disconnect : Void disconnect, emit(*args) : Void emit, name : String name, target : Godot::Object target, target_id : UInt64 target_id, to_s(io : IO) : Void to_s
Constructor methods inherited from class Godot::BoundSignal
new(target : Godot::Object, name : String)
new
Constructor Detail
Instance Method Detail
Cooperatively awaits this typed signal returning unboxed values or tuple
def await(timeout_sec : Number)
#
Description copied from class Godot::BoundSignal
Cooperatively awaits this signal with timeout in seconds
Type-safe connect with automatic unboxing into block parameters
Backwards-compatibility helper redirecting to ConnectFlags::OneShot