PriorityHap.attach

void attach(Handler handler, int priority = 0) @safe

Attach a delegate handler with the given priority.

Parameters

priorityLower values run first. Default is 0.
handlerDelegate handler to attach; null is ignored.
void attach(FunctionHandler handler, int priority = 0) @safe

Attach a free-function handler with the given priority.

Parameters

priorityLower values run first. Default is 0.
handlerFree-function handler to attach; null is ignored.