FastLED 3.9.15
Loading...
Searching...
No Matches

◆ schedule()

template<typename Task = fl::function<void()>>
void fl::net::RpcScheduler< Task >::schedule ( u32 timestamp,
Task task )
inline

Schedule a task for execution at specified timestamp.

Parameters
timestampExecution time (e.g., millis())
taskCallable to execute when timestamp arrives

Definition at line 39 of file rpc_scheduler.h.

39 {
40 mQueue.push({timestamp, fl::move(task)});
41 }
fl::priority_queue_stable< ScheduledTask > mQueue
Generic time-based task scheduler.
constexpr remove_reference< T >::type && move(T &&t) FL_NOEXCEPT
Definition s16x16x4.h:28

References fl::fl::move(), mQueue, and schedule().

Referenced by schedule().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: