Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Asyncio within a thread
#3
(Mar-09-2018, 07:03 PM)wavic Wrote:
except KeyboardInterrupt:
    loop.stop()
    loop.close()
Does this work?

Error:
RuntimeError: Cannot close a running event loop asyncio: Task was destroyed but it is pending!
Reply


Messages In This Thread
Asyncio within a thread - by hollymcr - Mar-09-2018, 04:02 PM
RE: Asyncio within a thread - by wavic - Mar-09-2018, 07:03 PM
RE: Asyncio within a thread - by hollymcr - Mar-12-2018, 08:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error SQLite objects created in a thread can only be used in that same thread. binhduonggttn 3 15,662 Jan-31-2020, 11:08 AM
Last Post: DeaD_EyE
  how this to make a asyncio thread safe? linziyan 0 2,370 Jun-07-2018, 10:33 AM
Last Post: linziyan

Forum Jump:

User Panel Messages

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