Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to do a two-way wait
#3
your guess is on target.

i was thinking along the lines of some code that can wait for one of a list of 2 or more threads to quit. this function is passed a list of functions, each waits on the various things to wait on. the function launches a thread for each and waits for any one to quit. then it returns the index of which it was. the other threads probably should be killed.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
how to do a two-way wait - by Skaperen - Mar-03-2022, 11:06 PM
RE: how to do a two-way wait - by bowlofred - Mar-03-2022, 11:31 PM
RE: how to do a two-way wait - by Skaperen - Mar-04-2022, 02:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Wait til a date and time KatManDEW 2 1,459 Mar-11-2022, 08:05 PM
Last Post: KatManDEW
  wait for the first of these events Skaperen 4 2,018 Mar-07-2022, 08:46 PM
Last Post: Gribouillis
  Run an app in a standalone terminal and wait until it's closed glestwid 2 2,552 Aug-30-2020, 08:14 AM
Last Post: glestwid
  python os.popen is not working for wait method elenaflorence87 0 2,024 Jul-22-2020, 12:56 PM
Last Post: elenaflorence87
  Wait for command within a process bRitch022 1 3,285 Jul-15-2020, 07:03 PM
Last Post: bRitch022
  Subprocess.send_signal, wait until completion plinio 5 9,112 Jun-29-2018, 12:07 PM
Last Post: plinio
  just a trial. Please wait 5 minutes before deleting this thread sylas 2 3,461 Jun-06-2017, 03:34 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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