using System; namespace QFSW.QC.Actions { /// /// Waits while the given condition is met. /// public class WaitWhile : ICommandAction { private readonly Func _condition; public bool IsFinished => _condition(); public bool StartsIdle => true; /// The condition to wait on. public WaitWhile(Func condition) { _condition = condition; } public void Start(ActionContext context) { } public void Finalize(ActionContext context) { } } }