RestrictedSignal

The signal implementation, not providing an emit method.

A RestrictedSignal reference is returned by Signal.restricted, it can safely be passed to users of your API, without allowing them to call emit().

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.

connect
void connect(void function(Args) fn)

Connect a free function to this signal.

disconnect
void disconnect(ClassType obj)

Disconnect a direct connection.

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(void function(Args) fn)

Disconnect a free function.

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