HapState.addRecord
void addRecord(size_t id, Handler handler) @safeAppend 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
id | Id assigned to the new record. |
handler | Handler to store. |