connect

Connect a listener to a Signal.

A payload can be passed if the function to call is a data member function of the same or if the function accepts as its first parameter a reference to its type.

  1. Connection connect(Sink!F sink)
    connect
    (
    alias pred
    F
    )
    (
    auto ref Sink!F sink
    )
  2. Connection connect(Sink!F sink, T instance)

Parameters

pred

the listener to connect.

sink Sink!F

the Sink that holds the signal.

Return Value

A Connection of the listener.

Meta