File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,15 +112,15 @@ class ExampleInterface(
112112Server ` example_server.py ` file:
113113
114114``` python
115- from asyncio import get_event_loop , sleep
115+ from asyncio import new_event_loop , sleep
116116from random import randint
117117from time import time
118118
119119from example_interface import ExampleInterface
120120
121121from sdbus import request_default_bus_name_async
122122
123- loop = get_event_loop ()
123+ loop = new_event_loop ()
124124
125125export_object = ExampleInterface()
126126
@@ -153,7 +153,7 @@ loop.run_forever()
153153Client ` example_client.py ` file:
154154
155155``` python
156- from asyncio import get_event_loop
156+ from asyncio import new_event_loop
157157
158158from example_interface import ExampleInterface
159159
@@ -178,7 +178,7 @@ async def call_upper() -> None:
178178async def get_hello_world () -> None :
179179 print (' Remote property: ' , await example_object.hello_world)
180180
181- loop = get_event_loop ()
181+ loop = new_event_loop ()
182182
183183# Always binds your tasks to a variable
184184task_upper = loop.create_task(call_upper())
You can’t perform that action at this time.
0 commit comments