通过 方法
获取 TimelineTask 的任务 ID。如果堆栈不为空,将抛出异常。
实现
int pass() {
if (_stack.length > 0) {
throw new StateError(
'You cannot pass a TimelineTask without finishing all started '
'operations');
}
int r = _taskId;
return r;
}
获取 TimelineTask 的任务 ID。如果堆栈不为空,将抛出异常。
int pass() {
if (_stack.length > 0) {
throw new StateError(
'You cannot pass a TimelineTask without finishing all started '
'operations');
}
int r = _taskId;
return r;
}