class TaskUtility (Niantic.ARDK.Utilities.TaskUtility)

Overview

class TaskUtility {
public:
    // methods

    static async Task WaitUntil(Func<bool> condition, int delay = 1);
    static async Task WaitWhile(Func<bool> condition, int delay = 1);
};

Detailed Documentation

Methods

static async Task WaitUntil(Func<bool> condition, int delay = 1)

Waits until the function is true.

Parameters:

condition

The function to wait on

delay

The number of milliseconds between each condition check

static async Task WaitWhile(Func<bool> condition, int delay = 1)

Waits while the function is true.

Parameters:

condition

The function to check

delay

The number of milliseconds between each condition check