API reference
API reference
Select your platform
No SDKs available
No versions available

TaskUtility Class

A static class used for frequently used task methods

Overview

Data Fields

const int
The default cpu task delay time in ms

Static Public Member Functions

static async Task
WaitWhile
( Func< bool > condition,
int delay )
Asynchronous task to be used for freeing up the CPU during tasks
static async Task
Wait
( int delay )
Asynchronous task to be used for freeing up the CPU during looping tasks

Details

Fields

const int Meta.WitAi.TaskUtility.DELAY_DEFAULT
The default cpu task delay time in ms

Static Member Functions

static async Task Meta.WitAi.TaskUtility.WaitWhile
( Func< bool > condition,
int delay )
Asynchronous task to be used for freeing up the CPU during tasks
Parameters
condition
Condition method that this method will keep waiting for, until false.
delay
Delay time per condition check in ms
static async Task Meta.WitAi.TaskUtility.Wait
( int delay )
Asynchronous task to be used for freeing up the CPU during looping tasks
Parameters
delay
Delay time per condition check in ms
Did you find this page helpful?
Thumbs up icon
Thumbs down icon