Table of Contents

Class TimeBoundWaiter

Namespace
NetAutoGUI.Internals
Assembly
NetAutoGUI.dll
public static class TimeBoundWaiter
Inheritance
TimeBoundWaiter
Inherited Members

Methods

WaitForNotNullAsync<T>(Func<T?>, double, string, CancellationToken)

public static Task<T> WaitForNotNullAsync<T>(Func<T?> func, double timeoutSeconds, string errorMessageWhenTimeout, CancellationToken cancellationToken)

Parameters

func Func<T>
timeoutSeconds double
errorMessageWhenTimeout string
cancellationToken CancellationToken

Returns

Task<T>

Type Parameters

T

WaitForNotNull<T>(Func<T?>, double, string)

public static T WaitForNotNull<T>(Func<T?> func, double timeoutSeconds, string errorMessageWhenTimeout)

Parameters

func Func<T>
timeoutSeconds double
errorMessageWhenTimeout string

Returns

T

Type Parameters

T