HapState.addRecord

void addRecord(size_t id, Handler handler) @safe

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

Parameters

idId assigned to the new record.
handlerHandler to store.