If you call gevent.spawn_later(), is there a way to cancel this scheduled function before it occurs?
Yes, use kill()
method.
g = gevent.spawn_later(5, function)
g.kill()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With