WPILibC++ 2024.3.2
frc::detail::ListenerExecutor Class Reference

An executor for running listener tasks posted by Sendable listeners synchronously from the main application thread. More...

#include <frc/smartdashboard/ListenerExecutor.h>

Public Member Functions

void Execute (std::function< void()> task)
 Posts a task to the executor to be run synchronously from the main thread. More...
 
void RunListenerTasks ()
 Runs all posted tasks. More...
 

Detailed Description

An executor for running listener tasks posted by Sendable listeners synchronously from the main application thread.

See also
Sendable

Member Function Documentation

◆ Execute()

void frc::detail::ListenerExecutor::Execute ( std::function< void()>  task)

Posts a task to the executor to be run synchronously from the main thread.

Parameters
taskThe task to run synchronously from the main thread.

◆ RunListenerTasks()

void frc::detail::ListenerExecutor::RunListenerTasks ( )

Runs all posted tasks.

Called periodically from main thread.


The documentation for this class was generated from the following file: