FastLED 3.10.9
Loading...
Searching...
No Matches

◆ unbind()

bool fl::Rpc::unbind ( const char * name)
inline

Unbind (unregister) a previously registered method.

Returns true if method was found and removed, false otherwise.

Definition at line 308 of file rpc.h.

308 {
309 fl::string key(name);
310 auto it = mRegistry.find(key);
311 if (it != mRegistry.end()) {
312 mRegistry.erase(it);
313 return true;
314 }
315 return false;
316 }
fl::unordered_map< fl::string, detail::RpcEntry > mRegistry
Definition rpc.h:417

References fl::FL_NO_EXCEPT, and mRegistry.