Signal

Multiple listeners; implicitly specified return and parameter types

Members

Aliases

slot_t
alias slot_t = RETURN_T delegate(T1)
Undocumented in source.

Functions

assigned
bool assigned()

returns true if listener is assigned

clear
void clear()

disconnect all listeners

connect
void connect(slot_t listener)

add listener

disconnect
void disconnect(slot_t listener)

remove listener

emit
RETURN_T emit(T1 params)

call all listeners; for signals having non-void return type, stop iterating when first return value is nonzero

emit
RETURN_T emit(T1 params)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
void opAssign(slot_t listener)

replace all previously assigned listeners with new one (if null passed, remove all listeners)

opCall
RETURN_T opCall(T1 params)

call all listeners; for signals having non-void return type, stop iterating when first return value is nonzero

opCall
RETURN_T opCall(T1 params)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta