tellActive method

  1. @override
Future<List<Aria2Task>> tellActive()
override

获取所有正在运行的任务的状态

Implementation

@override
Future<List<Aria2Task>> tellActive() async {
  var data = await _requestApi('aria2.tellActive', []);
  return data.map<Aria2Task>((dt) => Aria2Task.fromJson(dt)).toList();
}