time.sleep
should be avoided in basically every scenario - the only exception I would maybe give is a dedicated thread spawned by invokeAsynchronous
. later.py
technically hooks into an internal class, but the signature of that class is pretty unlikely to change, and, crucially, it does not require a thread to be kept sleeping.
3 Likes