diff options
| author | 2020-11-26 14:07:29 -0800 | |
|---|---|---|
| committer | 2020-11-26 14:07:29 -0800 | |
| commit | d9f87cc867a93d5f2d14d16eaac86ccb5adef447 (patch) | |
| tree | b0a155073120368738731325cc34984371484f1b /tests/__init__.py | |
| parent | Help channels: remove how_to_get_help from excluded channels (diff) | |
Help channels: don't check if task is done before awaiting
Awaiting a done task is effectively a no-op, so it's redundant to check
if the task is done before awaiting it.
Furthermore, a task is also considered done if it was cancelled or an
exception was raised. Therefore, avoiding awaiting in such cases doesn't
allow the errors to be propagated and incorrectly allows the awaiter to
keep executing.
Diffstat (limited to 'tests/__init__.py')
0 files changed, 0 insertions, 0 deletions