RegistrationBag.register

void register(Args...)(ref Hap!Args hap, void delegate(Args) @safe handler) @safe

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

Parameters

hapThe hap to register the handler on.
handlerThe delegate handler to attach.
void register(Args...)(ref Hap!Args hap, void function(Args) @safe handler) @safe

ditto

void register(Args...)(ref NothrowHap!Args hap, void delegate(Args) @safe nothrow handler) @safe nothrow

ditto

void register(Args...)(ref NothrowHap!Args hap, void function(Args) @safe nothrow handler) @safe nothrow

ditto