Aggregate.add
void add(Args...)(ref Hap!Args hap, void delegate(Args) @safe handler) @safeConnect an upstream hap to this aggregate.
Parameters
hap | The upstream hap to listen to. |
handler | The callback to invoke when the upstream fires. |
void add(Args...)(ref Hap!Args hap, void function(Args) @safe handler) @safeditto