We're running a server on eventlet green-threads + monkey-patching everything. I need to implement wait loop with periodic check, and I want to put sleep inside.
Is there any difference between :
eventlet.greenthread.sleep(1) AND time.sleep(1)
in monkey-patched environment? I'm wondering if monkey-patch handles time.sleep
They're the same in a monkey-patched environment.
eventlet
monkey patchestime.sleep
by default:No monkey patch:
With monkey-patch:
The only way it wouldn't be monkey-patch is if the
eventlet.monkey_patch
call specifies a subset of modules to monkey-patch, leaving out'time'
: