BSearchEdit icon indicating copy to clipboard operation
BSearchEdit copied to clipboard

Auto reloads are incompatible with gevent

Open cyberw opened this issue 5 years ago • 1 comments

It seems reloadr doesnt work with gevent patching? Is this a known limitation? Is there possibly a workaround?

from reloadr import reloadr
from gevent import monkey

monkey.patch_all()

@reloadr
class Foo:
    pass

Foo._start_watch_reload()  # hangs forever
print("this is never executed")

I'm running python 3.7.7, reloadr 0.4.1 and gevent 20.9.0

Edit: manual reloads (Foo._reload()) seem to work!

cyberw avatar Feb 07 '21 08:02 cyberw