execute method Null safety
- AsyncRun run
提交一个任务执行
Implementation
void execute(AsyncRun run) {
if (_currentRun < maxSize) {
_currentRun++;
_run(run);
} else {
_waitQueue.add(run);
}
}
提交一个任务执行
void execute(AsyncRun run) {
if (_currentRun < maxSize) {
_currentRun++;
_run(run);
} else {
_waitQueue.add(run);
}
}