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.

This is a convenience helper equivalent to bag.add(hap.register(handler)). The bag remains explicit so ownership is clear.

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