HapState.addRecord

void addRecord(size_t id, Handler handler) @safe

Append a handler record, copying first when a dispatch is in flight.

Only usable when Record is constructible from an id and a handler (the default RegistrationRecord shape).

Parameters

idId assigned to the new record.
handlerHandler to store.