RestrictedSignal

The signal implementation, not providing an emit method.

The idea is to instantiate a Signal privately and provide a public accessor method for accessing the contained RestrictedSignal. You can use the signal string mixin, which does exactly that.

Members

Functions

connect
void connect(ClassType obj)

Direct connection to an object.

connect
void connect(ClassType obj, void delegate(ClassType obj, Args) dg)

Indirect connection to an object.

disconnect
void disconnect(ClassType obj, void delegate(ClassType, T1) dg)

Disconnect an indirect connection.

disconnect
void disconnect(ClassType obj)

Disconnect all connections to obj.

disconnect
void disconnect(ClassType obj)

Disconnect a direct connection.

strongConnect
void strongConnect(void delegate(Args) dg)

Connect with strong ref semantics.

strongDisconnect
void strongDisconnect(void delegate(Args) dg)

Disconnect a connection made with strongConnect.

Meta