scopedRegister
Create a scoped registration that detaches automatically at scope exit.
Parameters
hap | The hap to register the handler on. |
handler | The delegate handler to attach. |
Returns
A ScopedRegistration that owns the registration.
ditto
fn
auto scopedRegister(Args...)(ref NothrowHap!Args hap, void delegate(Args) @safe nothrow handler) @safe nothrowditto
fn
auto scopedRegister(Args...)(ref NothrowHap!Args hap, void function(Args) @safe nothrow handler) @safe nothrowditto