RxAs.Rx2.ProofTests.Mock.ManualScheduler.RunAll C# (CSharp) Méthode

RunAll() public méthode

public RunAll ( ) : void
Résultat void
        public void RunAll()
        {
            while (actions.Count > 0)
            {
                actions.Dequeue()();
            }
        }

Usage Example

        public void publishing_is_run_through_publishing_scheduler()
        {
            ManualScheduler scheduler = new ManualScheduler();

            obs = Observable.Empty<int>(scheduler);

            bool completed = false;

            var subs = obs.Subscribe(x => { }, () => completed = true);

            Assert.IsFalse(completed);

            scheduler.RunAll();

            Assert.IsTrue(completed);
        }
All Usage Examples Of RxAs.Rx2.ProofTests.Mock.ManualScheduler::RunAll