Aggregate.add

void add(Args...)(ref Hap!Args hap, void delegate(Args) @safe handler) @safe

Connect an upstream hap to this aggregate.

Parameters

hapThe upstream hap to listen to.
handlerThe callback to invoke when the upstream fires.
void add(Args...)(ref Hap!Args hap, void function(Args) @safe handler) @safe

ditto