Python Forum
A question about 'Event loop is closed'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A question about 'Event loop is closed'
#3
(Oct-04-2021, 04:04 PM)deanhystad Wrote: Have you used asyncio before? I would expect to see code setting up an event loop and tasks added to the event loop.

Yeah...But in the new vision, we can omit loop.create_task and put list which contains coroutine function into asyncio.wait directly. And then, use asyncio.run instead get_event_loop and loop.close, isn't it? If there is anything wrong, I'm willing to be refuted.
Reply


Messages In This Thread
A question about 'Event loop is closed' - by fc5igm - Oct-04-2021, 02:24 PM
RE: A question about 'Event loop is closed' - by fc5igm - Oct-05-2021, 02:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  asyncio: WebSocketClient:connection closed (ERR): sent 1011 Michel777 0 489 Feb-04-2025, 09:22 PM
Last Post: Michel777
  How to umount on a closed distro ebolisa 5 1,194 Jan-03-2025, 03:50 AM
Last Post: DeaD_EyE
  [closed] check whether an integer is 32 or 64 bits paul18fr 4 5,211 May-27-2024, 04:55 PM
Last Post: deanhystad
  help RuntimeError: no running event loop marpaslight 5 7,725 Oct-18-2022, 10:04 PM
Last Post: marpaslight
Exclamation question about input, while loop, then print jamie_01 5 3,778 Sep-30-2021, 12:46 PM
Last Post: Underscore
  bleak library RuntimeError: This event loop is already running alice93 3 6,377 Sep-30-2021, 08:06 AM
Last Post: alice93
  ValueError: I/O operation on closed file problem aliwien 0 2,686 Apr-23-2021, 05:50 PM
Last Post: aliwien
  for loop question KEYS 1 2,258 Oct-27-2020, 11:42 PM
Last Post: jefsummers
  Netmiko Loop question sc00ter 2 4,229 Oct-24-2020, 10:54 PM
Last Post: sc00ter
  RuntimeError: This event loop is already running newbie2019 2 7,915 Sep-30-2020, 06:59 PM
Last Post: forest44

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020