Reputation: 15615
If you call gevent.spawn_later(), is there a way to cancel this scheduled function before it occurs?
Upvotes: 5
Views: 1226
Reputation: 3780
Yes, use kill() method.
kill()
g = gevent.spawn_later(5, function) g.kill()
Upvotes: 7