Changeset 13354 for branches/Async/HeuristicLab.Algorithms.DataAnalysis/3.4
- Timestamp:
- 11/24/15 12:20:43 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Async/HeuristicLab.Algorithms.DataAnalysis/3.4/CrossValidation.cs
r13349 r13354 41 41 public sealed class CrossValidation : ParameterizedNamedItem, IAlgorithm, IStorableContent { 42 42 private readonly ManualResetEvent signaler = new ManualResetEvent(true); 43 private CancellationToken cancellationToken; 43 44 44 45 public CrossValidation() … … 272 273 } 273 274 public async Task StartAsync() { 274 await StartAsync( new CancellationToken());275 await StartAsync(CancellationToken.None); 275 276 } 276 277 public async Task StartAsync(CancellationToken cancellationToken) { 278 this.cancellationToken = cancellationToken; 277 279 signaler.Reset(); 278 280 await Task.Run(() => { … … 682 684 IAlgorithm preparedAlgorithm = clonedAlgorithms.FirstOrDefault(alg => alg.ExecutionState == ExecutionState.Prepared || 683 685 alg.ExecutionState == ExecutionState.Paused); 684 if (preparedAlgorithm != null) preparedAlgorithm.StartAsync( );686 if (preparedAlgorithm != null) preparedAlgorithm.StartAsync(cancellationToken); 685 687 } 686 688 if (ExecutionState != ExecutionState.Stopped) {
Note: See TracChangeset
for help on using the changeset viewer.