-
Notifications
You must be signed in to change notification settings - Fork 20
暂停后resume时间不太对 #7
Copy link
Copy link
Open
Description
/**
* 暂停
*/
fun pause() {
if (state != IntervalStatus.STATE_ACTIVE) return
scope?.cancel()
state = IntervalStatus.STATE_PAUSE
delay = System.currentTimeMillis() - countTime
}
重新恢复时的delay时长应该轮询间隔减去已等待的时间,delay=period-(System.currentTimeMillis() - countTime)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels