template<class... T>
class psychic_ui::Signal< T >
Signal Create a signal with template arguments matching the arguments required for emit and parameters that will be used in the callback/lambda. Callbacks receive the arguments as const T &, or take no parameters to ignore them.
Handlers may connect, disconnect (themselves or others) and destroy the signal while it is emitting:
- a slot connected during an emission is first called by the next emission;
- a slot disconnected during an emission is not called anymore, even by the running one;
- when a handler destroys the signal, the emission stops after that handler (destroying it disconnects them all).
Signals can't be copied or moved: their slots and the handlers' captures refer to them.