RestrictedSignal.strongConnect

Connect with strong ref semantics.

Use this overload if you either want strong ref semantics for some reason or because you want to connect some non-class method delegate. Whatever the delegates' context references will stay in memory as long as the signals' connection is not removed and the signal gets not destroyed itself.

Preconditions: dg must not be null.

struct RestrictedSignal(Args...)
void
strongConnect
@trusted
(
void delegate(
Args
)
dg
)
in { assert (dg); }

Parameters

dg
Type: void delegate(
Args
)

The delegate to be connected.

Meta