[Event Hubs] replace asyncio.run() with loop.run_until_complete() in sample for python35
@@ -115,4 +115,5 @@ async def receive_events_from_iothub(iothub_conn_str):
if __name__ == '__main__':
iothub_conn_str = os.environ["IOTHUB_CONN_STR"]
- asyncio.run(receive_events_from_iothub(iothub_conn_str))
+ loop = asyncio.get_event_loop()
+ loop.run_until_complete(receive_events_from_iothub(iothub_conn_str))
