File tree Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,25 @@ await on multiple things with timeouts.
21
21
* - :func: `run `
22
22
- Create event loop, run a coroutine, close the loop.
23
23
24
+ * - :class: `Runner `
25
+ - A context manager that simplifies multiple async function calls.
26
+
27
+ * - :class: `Task `
28
+ - Task object.
29
+
30
+ * - :class: `TaskGroup `
31
+ - A context manager that holds a group of tasks. Provides
32
+ a convenient and reliable way to wait for all tasks in the group to
33
+ finish.
34
+
24
35
* - :func: `create_task `
25
- - Start an asyncio Task.
36
+ - Start an asyncio Task, then returns it.
37
+
38
+ * - :func: `current_task `
39
+ - Return the current Task.
40
+
41
+ * - :func: `all_tasks `
42
+ - Return all tasks that are not yet finished for an event loop.
26
43
27
44
* - ``await `` :func: `sleep `
28
45
- Sleep for a number of seconds.
@@ -39,14 +56,8 @@ await on multiple things with timeouts.
39
56
* - ``await `` :func: `wait `
40
57
- Monitor for completion.
41
58
42
- * - :func: `current_task `
43
- - Return the current Task.
44
-
45
- * - :func: `all_tasks `
46
- - Return all tasks for an event loop.
47
-
48
- * - :class: `Task `
49
- - Task object.
59
+ * - :func: `timeout `
60
+ - Run with a timeout. Useful in cases when `wait_for ` is not suitable.
50
61
51
62
* - :func: `to_thread `
52
63
- Asynchronously run a function in a separate OS thread.
You can’t perform that action at this time.
0 commit comments