示例#1
0
 public TaskRoutine(IRunner <T> runner)
 {
     _sveltoTask          = new SveltoTask <T>();
     _runner              = runner;
     _continuationWrapper = new ContinuationWrapper();
 }
示例#2
0
 public TaskRoutine(IInternalRunner <TaskRoutine <TTask> > runner)
 {
     _sveltoTask             = new SveltoTask();
     _runner                 = runner;
     _continuationEnumerator = ContinuationPool.RetrieveFromPool();
 }
示例#3
0
 public PooledSveltoTask(SveltoTasksPool pool)
 {
     _pool       = pool;
     _sveltoTask = new SveltoTask <IEnumerator>();
 }