diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-01-31 20:07:08 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | 54c85b18e036d29b7d0e2ca4d5543b37e4fc2f16 (patch) | |
tree | 56ccda139a072e1149d5d46c9f6c8ef6232c39e5 /tests/conftest.py | |
parent | 72c12c66fa8dbdd94e6e31d0a96d41ae45491930 (diff) | |
download | wee-slack-54c85b18e036d29b7d0e2ca4d5543b37e4fc2f16.tar.gz |
Sleep for 1 ms if 0 ms is specified
asyncio.sleep(0) is used to move the task to the back of the event loop.
This sleep can be used for the same, however if 0 is specified, WeeChat
never calls the callback. This means that the task will silently not
continue which is very bad, so make it sleep for 1 ms instead, which is
practically the same.
Diffstat (limited to 'tests/conftest.py')
0 files changed, 0 insertions, 0 deletions