File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 15
15
# limitations under the License.
16
16
#
17
17
18
- import sys
19
18
from asyncio_guest_run import asyncio_guest_run , schedule_on_asyncio
19
+ import asyncio_example_tasks
20
20
21
+ import sys
21
22
import traceback
22
23
from functools import wraps
23
24
28
29
from gi .repository import Gtk , GLib
29
30
from outcome import Error
30
31
31
- import example_tasks
32
-
33
-
34
32
class GtkHost :
35
33
def run_sync_soon_threadsafe (self , fn ):
36
34
# idle_add repeats infinitely unless fn returns False
@@ -86,10 +84,11 @@ def main(task):
86
84
display ,
87
85
run_sync_soon_threadsafe = host .run_sync_soon_threadsafe ,
88
86
done_callback = host .done_callback ,
89
- host_uses_signal_set_wakeup_fd = True ,
87
+ #TODO
88
+ #host_uses_signal_set_wakeup_fd=True,
90
89
)
91
90
host .mainloop ()
92
91
93
92
94
93
if __name__ == "__main__" :
95
- main (example_tasks .count )
94
+ main (asyncio_example_tasks .count )
You can’t perform that action at this time.
0 commit comments