This class is an IFiber wrapper. It ensures that async actions are executed in a serial manner. More...
Public Member Functions | |
ActionQueue (object owner, IFiber fiber) | |
Initializes a new instance of the ActionQueue class. More... | |
void | EnqueueAction (Action action) |
Enqueues an action into the Fiber. More... | |
IDisposable | ScheduleAction (Action action, int timeTilEnqueueInMs) |
Schedules an action on the Fiber. More... | |
IDisposable | ScheduleActionOnInterval (Action action, int timeTilEnqueueInMs) |
Schedules an action on an interval. More... | |
Properties | |
IFiber | Fiber [get] |
Gets the underlying IFiber. More... | |
object | Owner [get] |
Gets the action queue's owner. More... | |
This class is an IFiber wrapper. It ensures that async actions are executed in a serial manner.
|
inline |
Initializes a new instance of the ActionQueue class.
owner | The owner. |
fiber | The fiber. |
|
inline |
Enqueues an action into the Fiber.
action | The action. |
|
inline |
Schedules an action on the Fiber.
action | The action. |
timeTilEnqueueInMs | The time til enqueue in ms. |
|
inline |
Schedules an action on an interval.
action | The action. |
timeTilEnqueueInMs | The time til enqueue in ms. |
|
get |
Gets the underlying IFiber.
|
get |
Gets the action queue's owner.