Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/18/17 12:18:47 (7 years ago)
Author:
jkarder
Message:

#2830:

  • the asynchronous calls are now awaited
  • added extension method to flatten and handle inner exceptions of AggregateExceptions
  • fixed some catch clauses
Location:
trunk/sources/HeuristicLab.Clients.Hive/3.3/Tasks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/Tasks/EngineTask.cs

    r15287 r15367  
    7979    public override void Prepare() { }
    8080
    81     public override void Start() {
     81    public override async void Start() {
    8282      Item.Prepare(initialOperation);
    83       Item.StartAsync();
     83      await Item.StartAsync();
    8484    }
    8585
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/Tasks/OptimizerTask.cs

    r15287 r15367  
    9696    }
    9797
    98     public override void Start() {
     98    public override async void Start() {
    9999      if ((Item is Experiment && OptimizerAsExperiment.Optimizers.Count == 0) || // experiment would not fire OnStopped if it has 0 optimizers
    100100          (Item is BatchRun && OptimizerAsBatchRun.Optimizer == null)) { // batchrun would not fire OnStopped if algorithm == null
    101101        OnTaskStopped();
    102102      } else {
    103         Item.StartAsync();
     103        await Item.StartAsync();
    104104      }
    105105    }
Note: See TracChangeset for help on using the changeset viewer.