This commit is contained in:
Даниил Заикин
2026-06-17 20:44:53 +03:00
parent 9d153773c2
commit b133e7c656
1880 changed files with 244545 additions and 0 deletions
@@ -0,0 +1,25 @@
using System;
namespace QFSW.QC.Actions
{
/// <summary>
/// Waits while the given condition is met.
/// </summary>
public class WaitWhile : ICommandAction
{
private readonly Func<bool> _condition;
public bool IsFinished => !_condition();
public bool StartsIdle => true;
/// <param name="condition">The condition to wait on.</param>
public WaitWhile(Func<bool> condition)
{
_condition = condition;
}
public void Start(ActionContext context) { }
public void Finalize(ActionContext context) { }
}
}