Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Support completion of all workspace nicks | Trygve Aaberge | 2024-02-18 | 1 | -0/+3 |
| | |||||
* | Use hook_url for http requests when available | Trygve Aaberge | 2024-02-18 | 1 | -0/+5 |
| | |||||
* | Improve typing in task.py | Trygve Aaberge | 2024-02-18 | 1 | -6/+7 |
| | |||||
* | Record uncaught errors and add command to display them | Trygve Aaberge | 2024-02-18 | 1 | -3/+3 |
| | |||||
* | Warn when failed tasks are not awaited | Trygve Aaberge | 2024-02-18 | 1 | -2/+23 |
| | | | | | | | | | | | | | | If the task runner has finished all running/active tasks, there shouldn't be any tasks that hasn't been awaited. If there were (e.g. create_task was used when run_async should have been used), exceptions from those tasks would be silently ignored, so warn about this. The difference between running and active tasks is that active tasks are tasks waiting for a future to resolve, while running tasks include the currently running task. E.g. if task A creates a new task, B, and task B fails before task A has finished, task A won't be in active tasks, so therefore we need a different set to keep track of the running tasks. | ||||
* | Don't send response into coroutine | Trygve Aaberge | 2024-02-18 | 1 | -16/+13 |
| | | | | It's now set with set_result/set_exception instead. | ||||
* | Simplify gather and return immediately on exception | Trygve Aaberge | 2024-02-18 | 1 | -24/+10 |
| | |||||
* | Sleep for 1 ms if 0 ms is specified | Trygve Aaberge | 2024-02-18 | 1 | -3/+2 |
| | | | | | | | | 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. | ||||
* | Simplify setting future_id | Trygve Aaberge | 2024-02-18 | 1 | -4/+1 |
| | |||||
* | Log failed async tasks more robustly | Trygve Aaberge | 2024-02-18 | 1 | -26/+13 |
| | |||||
* | Don't set future result in __await__ | Trygve Aaberge | 2024-02-18 | 1 | -10/+7 |
| | |||||
* | Make Future very similar to asyncio.Future | Trygve Aaberge | 2024-02-18 | 1 | -21/+97 |
| | |||||
* | Cancel connecting when disconnect is called | Trygve Aaberge | 2024-02-18 | 1 | -0/+15 |
| | |||||
* | Replace some usages of Any with proper types | Trygve Aaberge | 2024-02-18 | 1 | -3/+3 |
| | |||||
* | Handle user group fetch error | Trygve Aaberge | 2024-02-18 | 1 | -2/+6 |
| | |||||
* | Improve error printing | Trygve Aaberge | 2024-02-18 | 1 | -11/+10 |
| | |||||
* | Fix compatibility with Python 3.7 | Trygve Aaberge | 2024-02-18 | 1 | -1/+4 |
| | |||||
* | Fix task exception handling | Trygve Aaberge | 2024-02-18 | 1 | -2/+9 |
| | |||||
* | Only print/raise errors for finished tasks | Trygve Aaberge | 2024-02-18 | 1 | -12/+21 |
| | |||||
* | Use BaseException instead of Exception in task.py | Trygve Aaberge | 2024-02-18 | 1 | -2/+2 |
| | |||||
* | Support return_exceptions in gather | Trygve Aaberge | 2024-02-18 | 1 | -6/+51 |
| | |||||
* | Make sure tasks raising exceptions are finished | Trygve Aaberge | 2024-02-18 | 1 | -21/+27 |
| | | | | | | When a task raises an execution we have to make sure to continue the tasks that are waiting on it, and to re-raise this exception in the __await__ so it propagates up. | ||||
* | Print error message on http/api error | Trygve Aaberge | 2024-02-18 | 1 | -1/+17 |
| | |||||
* | Fix async functions returning None and without await never finishing | Trygve Aaberge | 2024-02-18 | 1 | -6/+20 |
| | |||||
* | Remove active_responses | Trygve Aaberge | 2024-02-18 | 1 | -17/+6 |
| | |||||
* | Don't fetch the same user multiple times | Trygve Aaberge | 2024-02-18 | 1 | -22/+45 |
| | |||||
* | Unfurl user ids in messages | Trygve Aaberge | 2024-02-18 | 1 | -0/+1 |
| | |||||
* | Add SlackMessage class | Trygve Aaberge | 2024-02-18 | 1 | -9/+2 |
| | |||||
* | Use fetched users | Trygve Aaberge | 2024-02-18 | 1 | -1/+8 |
| | |||||
* | Create buffers on connect | Trygve Aaberge | 2024-02-18 | 1 | -1/+6 |
| | |||||
* | Don't use relative imports | Trygve Aaberge | 2024-02-18 | 1 | -2/+2 |
| | |||||
* | Use class for shared, so we don't have to change usage when combining | Trygve Aaberge | 2024-02-18 | 1 | -12/+12 |
| | |||||
* | Move main file out of directory | Trygve Aaberge | 2024-02-18 | 1 | -2/+3 |
| | |||||
* | Add callbacks to global scope | Trygve Aaberge | 2024-02-18 | 1 | -1/+4 |
| | |||||
* | Rename globals to G | Trygve Aaberge | 2024-02-18 | 1 | -12/+12 |
| | |||||
* | Split into multiple files | Trygve Aaberge | 2024-02-18 | 1 | -0/+79 |