registerInto
fn
void registerInto(Args...)(ref RegistrationBag bag, ref Hap!Args hap, void delegate(Args) @safe handler) @safeRegister a handler on a hap and add the resulting registration to a bag.
This is a convenience helper equivalent to bag.add(hap.register(handler)). The bag remains explicit so ownership is clear.
Parameters
bag | The registration bag to store the result in. |
hap | The hap to register the handler on. |
handler | The delegate handler to attach. |
fn
void registerInto(Args...)(ref RegistrationBag bag, ref Hap!Args hap, void function(Args) @safe handler) @safeditto
fn
void registerInto(Args...)(ref RegistrationBag bag, ref NothrowHap!Args hap, void delegate(Args) @safe nothrow handler) @safe nothrowditto
fn
void registerInto(Args...)(ref RegistrationBag bag, ref NothrowHap!Args hap, void function(Args) @safe nothrow handler) @safe nothrowditto