Empeld
Empeld plugin documentation.
|
Uses static yield-types to schedule something if IEnumerable<ITaskYieldAction> for inline code More...
Public Member Functions | |
YieldingTask (Func< IEnumerable< ITaskYieldAction >> method, TimeSpan delay) | |
YieldingTask (Func< IEnumerable< ITaskYieldAction >> method) | |
Static Public Member Functions | |
static ITaskYieldAction | Task (ITask task) |
Yield a new task to run here More... | |
static ITaskYieldAction | Task (Func< IEnumerable< ITaskYieldAction >> task) |
Yield a new task to run here More... | |
static ITaskYieldAction | Wait (Func< bool > predicate, TimeSpan checkTime) |
Wait until the predicate is true, checking every amount of time More... | |
static ITaskYieldAction | Wait (TimeSpan time) |
Wait the specified time More... | |
static ITaskYieldAction | Wait (Func< bool > predicate) |
Wait for the predicate to be true More... | |
static ITaskYieldAction | Wait (double seconds) |
Wait the specified number of seconds More... | |
Properties | |
static ITaskYieldAction | Next [get] |
Yields to the next scheduled task. Will start again in the next tick More... | |
static ITaskYieldAction | Reset [get] |
Restarts the task over from the beginning More... | |
Properties inherited from pluginbase.Objects.Tasks.ITask | |
TimeSpan | Frequency [get] |
Uses static yield-types to schedule something if IEnumerable<ITaskYieldAction> for inline code
pluginbase.Objects.Tasks.YieldingTask.YieldingTask | ( | Func< IEnumerable< ITaskYieldAction >> | method, |
TimeSpan | delay | ||
) |
pluginbase.Objects.Tasks.YieldingTask.YieldingTask | ( | Func< IEnumerable< ITaskYieldAction >> | method | ) |
|
static |
|
static |
Yield a new task to run here
task | Task. |
|
static |
|
static |
|
static |
|
static |
|
staticget |
Yields to the next scheduled task. Will start again in the next tick
|
staticget |
Restarts the task over from the beginning
The reset.