Python Forum
How to yield multiple requests but only action one request in Simpy
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to yield multiple requests but only action one request in Simpy
#4
I actually just found a way to solve this myself. It would be pretty hard without exploring the in's and out's of Simpy. For those interested in the future, just stick these two lines after the yield statement.

if req1 in requests and req2 in requests:
t2.release(req2)
Reply


Messages In This Thread
RE: How to yield multiple requests but only action one request in Simpy - by BushChooks - Apr-10-2020, 05:25 AM

Forum Jump:

User Panel Messages

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