isRunning method

bool isRunning(
  1. String id
)

检查任务是否运行中

Implementation

bool isRunning(String id) {
  return _tasks.containsKey(id);
}