CmdMessenger 3.0 CmdMessenger is a serial port messaging library for the .Net / Mono Platform.

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Members

Classes | Public Member Functions | Properties
CommandMessenger.TimedAction Class Reference

Starts a recurring action with fixed interval If still running at next call, the action is skipped. More...

List of all members.

## Classes
class | ThreadState
| Thread state.
## Public Member Functions
| TimedAction (double interval, Action action)
| Constructor.
void | Start ()
| Start timed actions.
void | Stop ()
| Stop timed actions.
void | StopAndWait ()
| Stop timed actions and wait until running function has finished.
## Properties
bool | IsRunning`[get]`
| Returns whether this object is running.

## Detailed Description

Starts a recurring action with fixed interval If still running at next call, the action is skipped.

## Constructor & Destructor Documentation

CommandMessenger.TimedAction.TimedAction | ( | double | interval,
|  | Action | action
| ) |  |

Constructor.

Parameters:

  interval | The execution interval.
  action | The action to execute.

## Member Function Documentation

void CommandMessenger.TimedAction.Start | ( |  | ) |

Start timed actions.

void CommandMessenger.TimedAction.Stop | ( |  | ) |

Stop timed actions.

void CommandMessenger.TimedAction.StopAndWait | ( |  | ) |

Stop timed actions and wait until running function has finished.

## Property Documentation

bool CommandMessenger.TimedAction.IsRunning`[get]`

Returns whether this object is running.

true if this object is running, false if not.

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

- D:/My Documents/Github/Arduino-Code-and-Libraries/Libraries/CmdMessenger/CSharp/CommandMessenger/TimedAction.cs