TaskWorker<I extends Object, R, U> constructor

TaskWorker<I extends Object, R, U>(
  1. String _name, [
  2. void _onFailure(
    1. MediaPipeException error
    )?
])

A worker for one task, which its errors name, such as 'DecisionMaker'; the optional callback hears the worker's failure as it happens.

Implementation

TaskWorker(this._name, [this._onFailure]) {
  _events.listen(_receive);
}