Search Results for

    Show / Hide Table of Contents

    Class WaitWhile

    Some useful wait while methods to control program flow.

    Inheritance
    System.Object
    WaitWhile
    Namespace: GDX.Threading
    Syntax
    public static class WaitWhile

    Methods

    | Improve this Doc View Source

    GetEnumerator(Func<Boolean>)

    Wait using an System.Collections.IEnumerator while the conditional is true.

    Declaration
    public static IEnumerator GetEnumerator(Func<bool> conditional)
    Parameters
    Type Name Description
    System.Func<System.Boolean> conditional

    A function evaluated to determine if the wait continues.

    Returns
    Type Description
    System.Collections.IEnumerator

    Yields null values.

    | Improve this Doc View Source

    GetTask(Func<Boolean>)

    Wait asynchronously while the conditional is true.

    Declaration
    public static async Task GetTask(Func<bool> conditional)
    Parameters
    Type Name Description
    System.Func<System.Boolean> conditional

    A function evaluated to determine if the wait continues.

    Returns
    Type Description
    System.Threading.Tasks.Task
    • Improve this Doc
    • View Source
    In This Article
    Back to top Built on 2024-01-01 against 1f69a68.
    Generated by Dox+DocFX.