Interfaces
ITickQueueService
Handles invocation on a tick by tick basis. Useful for calling natives on a background thread when we don't necessarily need an immediate result.
Methods
EnqueueAsync
Pushes an action to the tick queue, and requests that the system runs a tick for the current resource ASAP.
Parameters
| Name | Type | Description |
|---|---|---|
| action | Action | An action to execute and complete upon execution. |
Returns
| Name | Type |
|---|---|
| Task | A task which completes upon execution. |
EnqueueAsync
See EnqueueAsync.
Parameters
| Name | Type | Description |
|---|---|---|
| action | Func<T> | An action to execute and complete upon execution. |
Returns
| Name | Type |
|---|---|
| Task<T> | A task which completes upon execution. |
EnqueueInterval
Pushes an action to the tick queue which will be invoked at the given interval.
Parameters
| Name | Type | Description |
|---|---|---|
| action | Action | An action to execute and complete upon execution. |
| intervalInMs | int | The interval to run the action in milliseconds. |
Returns
| Name | Type |
|---|---|
| Guid | The enqueued task's ID. |
EnqueueInterval
Pushes an action to the tick queue which will be invoked at the given interval.
Parameters
| Name | Type | Description |
|---|---|---|
| action | Func<Task> | An action to execute and complete upon execution. |
| intervalInMs | int | The interval to run the action in milliseconds. |
Returns
| Name | Type |
|---|---|
| Guid | The enqueued task's ID. |
DequeueInterval
Dequeues an interval task.
Parameters
| Name | Type | Description |
|---|---|---|
| guid | Guid | The ID of the task. |