예제 #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>();
 }