disconnect

Disconnects a listener from a Signal. The order is not preserved after the removal.

Parameters

pred

the listener to disconnect.

sink Sink!F

the Sink that holds the signal.

Examples

void method() {}
struct Foo { void method() {} }
Foo foo;

/* ... */

// lets assume a signal exists with listeners
sink.disconnect!(Foo.method)(foo); // disconnects Foo.method with payload foo
sink.disconnect!method;            // disconnects method
sink.disconnect(foo);              // disconnects all listeners with payload foo
sink.disconnect();                 // disconnects all listeners

Meta