core-async

2020-11-07T02:13:34.226800Z

Thanks, I was hoping to find something like this!

2020-11-07T03:43:59.231500Z

I want to model the scenario where I have a set number of chairs that can be sat in and an unknown number of people who can sit in them. No chair can have more than one person sitting in it, and there can be no ‘lining up’ to wait for a chair to become empty. A person can sit in a chair only if it’s empty. How do I model this?

2020-11-07T03:44:11.231800Z

I promise this isn’t homework

🙂 1
2020-11-07T06:20:55.232700Z

Sounds like text book queueing theory

2020-11-07T06:21:55.234400Z

You have a queue of people, and each chair is a worker occupied with the work of supporting a person for some amount of time