bots in Java I'll just create a Thread pool and assign heavy processing command to different Threads
There was still a bottleneck since all the petitions were first handled by the main and only thread but if a command was slow at least I could start processing the next one instead of making the user wait for the other to complete
I don't think it fixes anything but that's all I can say
Not built in, but there are projects like node-threadpool that might work
Обсуждают сегодня