FastLED 3.10.8
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 303 of file rpc.h.

303 {
304 fl::string key(name);
305 auto it = mRegistry.find(key);
306 if (it != mRegistry.end()) {
307 mRegistry.erase(it);
308 return true;
309 }
310 return false;
311 }
fl::unordered_map< fl::string, detail::RpcEntry > mRegistry
Definition rpc.h:406

References fl::FL_NO_EXCEPT, and mRegistry.