Hi all. Imagine I have a server that is adding an ...
# coroutines
t
Hi all. Imagine I have a server that is adding an objects to queue continuously and I have a n-amount of threads that taking an object from queue, does some computation and saving result to database. Is it possible to do the task in the same way with coroutines, and if it is can someone help me please?
z
Sounds like something a worker pool would be good for. You can use a channel for the queue, and spin up
n
coroutines to read from the channel.