public void TestIdeas()
        {
            var fiberTasks = new System.Collections.Generic.List <FiberTask>();
            var mainFiber  = new FiberTask();

            for (var i = 0; i < 5; i++)
            {
                fiberTasks.Add(new FiberTask(mainFiber));
            }
            for (var i = 0; i < fiberTasks.Count; i++)
            {
                Console.WriteLine("Resuming " + i);
                var fiberTask = fiberTasks[i];
                if (!fiberTask.Resume())
                {
                    Console.WriteLine("Fiber " + i + " was disposed.");
                    fiberTasks.RemoveAt(i);
                    i--;
                }
            }
            for (var i = 0; i < fiberTasks.Count; i++)
            {
                Console.WriteLine("Disposing " + i);
                fiberTasks[i].Dispose();
            }
        }
 public FiberTask(FiberTask mainTask)
     : base(mainTask)
 {
 }