RestrictedSignal.connect

Connect a free function to this signal.

Preconditions: fn must not be null.

  1. void connect(ClassType obj)
  2. void connect(ClassType obj, void delegate(ClassType obj, Args) dg)
  3. void connect(void function(Args) fn)
    struct RestrictedSignal(Args...)
    void
    connect
    @trusted
    (
    void function(
    Args
    )
    fn
    )
    in { assert (fn); }

Parameters

fn
Type: void function(
Args
)

The free function to be connected.

Meta