RegistrationBag.register
void register(Args...)(ref Hap!Args hap, void delegate(Args) @safe handler) @safeRegister a handler on a hap and add the resulting registration to this bag.
Parameters
hap | The hap to register the handler on. |
handler | The delegate handler to attach. |
void register(Args...)(ref Hap!Args hap, void function(Args) @safe handler) @safeditto
void register(Args...)(ref NothrowHap!Args hap, void delegate(Args) @safe nothrow handler) @safe nothrowditto
void register(Args...)(ref NothrowHap!Args hap, void function(Args) @safe nothrow handler) @safe nothrowditto