RaspberryIO_26/Swan.Lite/Threading/WorkerState.cs
2019-12-04 18:57:18 +01:00

34 lines
773 B
C#

namespace Swan.Threading
{
/// <summary>
/// Enumerates the different states in which a worker can be.
/// </summary>
public enum WorkerState
{
/// <summary>
/// The worker has been created and it is ready to start.
/// </summary>
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,
}
}