FastLED 3.9.15
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 292 of file rpc.h.

292 {
293 fl::string key(name);
294 auto it = mRegistry.find(key);
295 if (it != mRegistry.end()) {
296 mRegistry.erase(it);
297 return true;
298 }
299 return false;
300 }
fl::unordered_map< fl::string, detail::RpcEntry > mRegistry
Definition rpc.h:387

References mRegistry.