FastLED 3.10.8
Loading...
Searching...
No Matches

◆ bindAsync()

void fl::Remote::bindAsync ( const char * name,
fl::function< void(fl::ResponseSend &, const fl::json &)> fn,
fl::RpcMode mode = fl::RpcMode::ASYNC )
inline

Register async method with ResponseSend& parameter (for ASYNC/ASYNC_STREAM modes) Signature: void(ResponseSend&, const json&) The ResponseSend& parameter provides send(), sendUpdate(), sendFinal() methods.

Definition at line 105 of file remote.h.

107 {
108 mRpc.bindAsync(name, fl::move(fn), mode);
109 }
fl::Rpc mRpc
Definition remote.h:225
constexpr remove_reference< T >::type && move(T &&t) FL_NO_EXCEPT
Definition move.h:30

References fl::ASYNC, fl::FL_NO_EXCEPT, fl::adl_barrier::move(), and mRpc.

+ Here is the call graph for this function: