public void StartWait(Func <bool> waitF, Action onEnd) { this.waiter = new Util.Waiter(); this.waiter.StartWait(waitF, () => { this.waiter = null; onEnd(); }); }
public void StartWait(Action startWaitF, Func <bool> isReadyF, Action onEnd) { startWaitF(); this.waiter = new Util.Waiter(); this.waiter.StartWait(isReadyF, () => { this.waiter = null; onEnd(); }); }