Skip to content
This repository has been archived by the owner. It is now read-only.

[tasks] Run-time changing of the sleep interval #2158

Closed
Rapptz opened this issue May 16, 2019 · 0 comments
Closed

[tasks] Run-time changing of the sleep interval #2158

Rapptz opened this issue May 16, 2019 · 0 comments
Milestone

Comments

@Rapptz
Copy link
Owner

@Rapptz Rapptz commented May 16, 2019

The Problem

No way to change the sleep interval at run-time.

The Ideal Solution

Something like task.change_interval(seconds=20.0).

It should apply on the next loop. If someone wants to do it right away regardless of the current loop they can cancel it, change the interval, then start it again.

The Current Solution

None

@Rapptz Rapptz added this to the v1.2 milestone May 16, 2019
@Rapptz Rapptz closed this in #2162 May 17, 2019
Rapptz added a commit that referenced this issue May 17, 2019
yagomichalak pushed a commit to yagomichalak/discord.py that referenced this issue May 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant