RestrictedSignal.disconnect

Disconnect a direct connection.

After issuing this call, the connection to method of obj is lost and obj.method() will no longer be called on emit. Preconditions: Same as for direct connect.

  1. void disconnect(ClassType obj)
    struct RestrictedSignal(Args...)
    void
    disconnect
    @trusted
    (
    string method
    ClassType
    )
    (
    ClassType obj
    )
    if (
    is(ClassType == class) &&
    __traits(compiles, )
    )
    in { assert (obj); }
  2. void disconnect(ClassType obj, void delegate(ClassType, T1) dg)
  3. void disconnect(ClassType obj)
  4. void disconnect(void function(Args) fn)

Meta