Example #1
0
 public void Start()
 {
     spinTask = Task.Factory.StartNew(() =>
     {
         token       = tokenSource.Token;
         var spinner = new SingleThreadSpinner(callbackQueue);
         spinner.Spin(token);
     }, TaskCreationOptions.LongRunning);
 }
Example #2
0
 public void Start()
 {
     spinTask = Task.Factory.StartNew(() =>
     {
         var cancel  = cts.Token;
         var spinner = new SingleThreadSpinner(callbackQueue);
         spinner.Spin(cancel);
     }, TaskCreationOptions.LongRunning);
 }