connect function

  1. @JS()
dynamic connect(
  1. List<Strategy> strategies,
  2. num minPriority,
  3. Function callbackBuilder
)

Connects to all strategies in parallel. Callback builder should be a function that takes two arguments: index and a list of runners. It should return another function that will be passed to the substrategy with given index. Runners can be aborted using abortRunner(s) functions from this class.

Implementation

@JS()
external connect(
    List<Strategy> strategies, num minPriority, Function callbackBuilder);