Signal.sink

Get a Sink to connect and disconnect listeners from a Signal.

This function can be @trusted if the lifetime of the Sink does not extend the lifetime of the Signal.

Note: DIP1000 can detect if a reference escapes and as such it can infer @safe.

struct Signal(F)
sink
(
this This
)
()
if (
is(F : RT delegate
(
Args
)
,
RT
Args...
)
)

Return Value

Type: Sink!F

A newly constructed Sink.

Meta