Changeset 15232 for branches/Async/HeuristicLab.Clients.OKB
- Timestamp:
- 07/13/17 15:53:56 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Async/HeuristicLab.Clients.OKB/3.3/RunCreation/OKBAlgorithm.cs
r15065 r15232 69 69 try { 70 70 algorithm.Problem = problem; 71 } 72 catch (ArgumentException) { 71 } catch (ArgumentException) { 73 72 algorithm.Problem = null; 74 73 } … … 263 262 public async Task StartAsync() { await StartAsync(CancellationToken.None); } 264 263 public async Task StartAsync(CancellationToken cancellationToken) { 265 await Task.Factory.StartNew((ct) => Start((CancellationToken)ct), cancellationToken, cancellationToken);264 await AsyncHelper.DoAsync(Start, cancellationToken); 266 265 } 267 266 public void Pause() {
Note: See TracChangeset
for help on using the changeset viewer.