public static Task<bool> Coroutine.Wait(int maxWaitMs, Func<bool> condition)
Executes the wait operation with the supplied arguments.
maxWaitMsint- Specifies max wait ms.
conditionFunc<bool>- Specifies condition.
Returns: An asynchronous operation. Await it before reading the result or continuing the workflow.