Good morning!
I have an Effect that will poll an API to see how many jobs are running. I can run 10 jobs conccurently. If there are less than 10 jobs, I can call the API to add a new job.
I want to have an Effect that poll this API and have a way to say to my program "you have a slot to add a job!", and an other effect will add a new job, but I'm not sure what to use
Would you recommend a Queue? Or maybe a Semaphore?