Ejemplo 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();
 }
Ejemplo n.º 2
0
 internal DisposableTask(Action task, TaskExecutorWorker parent)
 {
     this.task   = task;
     this.parent = parent;
     this.cts    = new CancellationTokenSource();
 }