class Godot::SignalSubscription

Overview

Represents an active signal subscription or awaiter

Defined in:

libgodot/signals/subscription.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

try?(&)
try?
try?

Constructor Detail

def self.new(target_id : UInt64, signal_name : String, flags : ConnectFlags = ConnectFlags::None, callback : Proc(Array(Variant), Void) | Nil = nil, receiver : Godot::Object | Nil = nil) #

Instance Method Detail

def active? : Bool #

Returns true if this subscription is still active and listening


def args : Array(Variant) #

def callback : Proc(Array(Variant), Void) | Nil #

def completed? : Bool #

def connected? : Bool #

Idiomatic alias for #active?


def disconnect : Void #

Idiomatic alias for #unsubscribe


def flags : ConnectFlags #

def freed? : Bool #

def mark_completed! : Void #

def mark_freed! : Void #

def mark_unsubscribed! : Void #

def proc_closure_data : Pointer(Void) #

def proc_closure_data=(proc_closure_data : Pointer(Void)) #

def proc_pointer : Pointer(Void) #

def proc_pointer=(proc_pointer : Pointer(Void)) #

def receiver : Godot::Object | Nil #

def receiver_id : UInt64 | Nil #

def signal_name : String #

def static_slot_token : UInt64 #

def static_slot_token=(static_slot_token : UInt64) #

def string_args : Array(String) #

def target_id : UInt64 #

def trigger(signal_args : Array(Variant)) : Void #

def typed_fast_path=(typed_fast_path : Bool) #

def typed_fast_path? : Bool #

def unsubscribe : Void #

def unsubscribed? : Bool #

def waiting_fiber : Fiber | Nil #

def waiting_fiber=(waiting_fiber : Fiber | Nil) #