rabidus-test/Assets/Plugins/QFSW/Quantum Console/Source/Scripts/Actions/WaitUntil.cs

16 lines
348 B
C#
Raw Permalink Normal View History

2023-08-22 15:41:12 +03:00
using System;
namespace QFSW.QC.Actions
{
/// <summary>
/// Waits until the given condition is met.
/// </summary>
public class WaitUntil : WaitWhile
{
/// <param name="condition">The condition to wait on.</param>
public WaitUntil(Func<bool> condition) : base(() => !condition())
{
}
}
}