We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/** * 暂停 */ fun pause() { if (state != IntervalStatus.STATE_ACTIVE) return scope?.cancel() state = IntervalStatus.STATE_PAUSE delay = System.currentTimeMillis() - countTime }
重新恢复时的delay时长应该轮询间隔减去已等待的时间,delay=period-(System.currentTimeMillis() - countTime)
The text was updated successfully, but these errors were encountered:
这个库修复了,在网络库看到的
Sorry, something went wrong.
Net的代码没有修复吗?
No branches or pull requests
/**
* 暂停
*/
fun pause() {
if (state != IntervalStatus.STATE_ACTIVE) return
scope?.cancel()
state = IntervalStatus.STATE_PAUSE
delay = System.currentTimeMillis() - countTime
}
重新恢复时的delay时长应该轮询间隔减去已等待的时间,delay=period-(System.currentTimeMillis() - countTime)
The text was updated successfully, but these errors were encountered: