Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果调用 gevent.spawn_later(),有没有办法在这个预定函数发生之前取消它?
是的,使用kill()方法。
kill()
g = gevent.spawn_later(5, function) g.kill()