registerInto

fnvoid registerInto(Args...)(ref RegistrationBag bag, ref Hap!Args hap, void delegate(Args) @safe handler) @safe

Register a handler on a hap and add the resulting registration to a bag.

Convenience helper: registers handler on hap and stores the returned registration in bag, combining the two calls the helper exists for.

Parameters

bagThe registration bag to store the result in.
hapThe hap to register the handler on.
handlerThe delegate handler to attach.
fnvoid registerInto(Args...)(ref RegistrationBag bag, ref Hap!Args hap, void function(Args) @safe handler) @safe

ditto

fnvoid registerInto(Args...)(ref RegistrationBag bag, ref NothrowHap!Args hap, void delegate(Args) @safe nothrow handler) @safe nothrow

ditto

fnvoid registerInto(Args...)(ref RegistrationBag bag, ref NothrowHap!Args hap, void function(Args) @safe nothrow handler) @safe nothrow

ditto