Esempio n. 1
0
 internal DisposablePeriodicTask(Action task, TaskExecutorWorker parent, long start, long period)
 {
     this.task   = task;
     this.parent = parent;
     this.start  = start;
     this.period = period;
     this.cts    = new CancellationTokenSource();
 }
Esempio n. 2
0
 internal DisposableTask(Action task, TaskExecutorWorker parent)
 {
     this.task   = task;
     this.parent = parent;
     this.cts    = new CancellationTokenSource();
 }