Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Event listeners
#1
Hi! First time poster here.

I have a project that requires a lot of pseudo-parallel I/O (cycling quickly enough that a human user doesn't notice it) and was suggested that I use Javascript because of its concurrency and use of event listeners, but I would rather like to use Python, since I am more familiar with it.

Is there a way to copy the event listener functionality from JS in Python? I would like to avoid having to explicitly poll other processes/threads/objects all the time.

Thank You in advance
Reply
#2
you can read up on this and find examples here: https://python-can.readthedocs.io/en/mas...eners.html
Reply


Forum Jump:

User Panel Messages

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