RaspberryIO_26/Swan.Lite/Threading/WorkerState.cs

32 lines
690 B
C#
Raw Permalink Normal View History

2019-12-08 19:54:52 +01:00
namespace Swan.Threading {
/// <summary>
/// Enumerates the different states in which a worker can be.
/// </summary>
public enum WorkerState {
2019-12-04 18:57:18 +01:00
/// <summary>
2019-12-08 19:54:52 +01:00
/// The worker has been created and it is ready to start.
2019-12-04 18:57:18 +01:00
/// </summary>
2019-12-08 19:54:52 +01:00
Created,
/// <summary>
/// The worker is running it cycle logic.
/// </summary>
Running,
/// <summary>
/// The worker is running its delay logic.
/// </summary>
Waiting,
/// <summary>
/// The worker is in the paused or suspended state.
/// </summary>
Paused,
/// <summary>
/// The worker is stopped and ready for disposal.
/// </summary>
Stopped,
}
2019-12-04 18:57:18 +01:00
}