Closed nonsleepr closed 3 years ago
Hi @nonsleepr
I think that your patch does not cancel the already running .heartbeat() task. So that 'Task was destroyed but it is pending!' message would keep appearing.
self.heartbeat_handle.cancel() only calls .cancel() method of TimerHandle object relevant with .create_heartbeat() method. But it would already been called and there would exist heartbeat() task.
Hello @cybergrind
I fixed this PR and added a test for it.
@nonsleepr Since that this PR allows edits from maintainer, I was able to add some commits, rebase and push them to your PR branch. Thank you.
@rhdxmr great! will check and merge soon
@nonsleepr / @rhdxmr thank you, landed in 0.28.0
Fixes the following error message: