RestrictedSignal.strongConnect

Connect with strong ref semantics.

Use this overload if you either really, really 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. (Its context may.)

struct RestrictedSignal(Args...)
@trusted
void
strongConnect
(
void delegate
(
Args
)
dg
)

Parameters

dg void delegate
(
Args
)

The delegate to be connected.

Meta