Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/13/17 15:53:56 (7 years ago)
Author:
jkarder
Message:

#2258: worked on exception handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Async/HeuristicLab.Clients.OKB/3.3/RunCreation/OKBAlgorithm.cs

    r15065 r15232  
    6969            try {
    7070              algorithm.Problem = problem;
    71             }
    72             catch (ArgumentException) {
     71            } catch (ArgumentException) {
    7372              algorithm.Problem = null;
    7473            }
     
    263262    public async Task StartAsync() { await StartAsync(CancellationToken.None); }
    264263    public async Task StartAsync(CancellationToken cancellationToken) {
    265       await Task.Factory.StartNew((ct) => Start((CancellationToken)ct), cancellationToken, cancellationToken);
     264      await AsyncHelper.DoAsync(Start, cancellationToken);
    266265    }
    267266    public void Pause() {
Note: See TracChangeset for help on using the changeset viewer.