Signal

Multiple listeners; implicitly specified return and parameter types

Members

Aliases

params_t
alias params_t = ParameterTypeTuple!(__traits(getMember, T1, __traits(allMembers, T1)[0]))
Undocumented in source.
return_t
alias return_t = ReturnType!(__traits(getMember, T1, __traits(allMembers, T1)[0]))
Undocumented in source.
slot_t
alias slot_t = return_t delegate(params_t)
Undocumented in source.

Functions

assigned
bool assigned()

returns true if listener is assigned

connect
void connect(slot_t listener)

add listener

disconnect
void disconnect(slot_t listener)

remove listener

emit
return_t emit(params_t params)

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

emit
return_t emit(params_t 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(params_t params)

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

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

Meta