1 |
commit: a65d93bdeb4d964603cd0ce9b0a75a571c9bdefa |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 26 09:19:22 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 26 09:31:09 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=a65d93bd |
7 |
|
8 |
SchedulerInterface: expose AbstractEventLoop methods (bug 591760) |
9 |
|
10 |
Bug: https://bugs.gentoo.org/591760 |
11 |
|
12 |
pym/portage/util/_async/SchedulerInterface.py | 34 +++++++++++++++++++++++---- |
13 |
1 file changed, 30 insertions(+), 4 deletions(-) |
14 |
|
15 |
diff --git a/pym/portage/util/_async/SchedulerInterface.py b/pym/portage/util/_async/SchedulerInterface.py |
16 |
index 21420ae41..ab2a70852 100644 |
17 |
--- a/pym/portage/util/_async/SchedulerInterface.py |
18 |
+++ b/pym/portage/util/_async/SchedulerInterface.py |
19 |
@@ -13,10 +13,36 @@ class SchedulerInterface(SlotObject): |
20 |
|
21 |
_event_loop_attrs = ("IO_ERR", "IO_HUP", "IO_IN", |
22 |
"IO_NVAL", "IO_OUT", "IO_PRI", |
23 |
- "call_soon", "call_soon_threadsafe", |
24 |
- "child_watch_add", "create_future", |
25 |
- "idle_add", "io_add_watch", "iteration", "run_until_complete", |
26 |
- "source_remove", "timeout_add") |
27 |
+ "child_watch_add", |
28 |
+ "idle_add", |
29 |
+ "io_add_watch", |
30 |
+ "iteration", |
31 |
+ "source_remove", |
32 |
+ "timeout_add", |
33 |
+ |
34 |
+ "add_reader", |
35 |
+ "add_writer", |
36 |
+ "call_at", |
37 |
+ "call_exception_handler", |
38 |
+ "call_later", |
39 |
+ "call_soon", |
40 |
+ "call_soon_threadsafe", |
41 |
+ "close", |
42 |
+ "create_future", |
43 |
+ "default_exception_handler", |
44 |
+ "get_debug", |
45 |
+ "is_closed", |
46 |
+ "is_running", |
47 |
+ "remove_reader", |
48 |
+ "remove_writer", |
49 |
+ "run_in_executor", |
50 |
+ "run_until_complete", |
51 |
+ "set_debug", |
52 |
+ "time", |
53 |
+ |
54 |
+ "_asyncio_child_watcher", |
55 |
+ "_asyncio_wrapper", |
56 |
+ ) |
57 |
|
58 |
__slots__ = _event_loop_attrs + ("_event_loop", "_is_background") |