3 ms·
Why not just do this with a regular stack and avoid having to deal with the scheduler at all? Try pop from the stack and if the stack is empty, do a new allocat
by vore 3y ago
Why not just do this with a regular stack and avoid having to deal with the scheduler at all? Try pop from the stack and if the stack is empty, do a new allocation.
- lanstin 3y agoBecause I am using them in different go routines and I find Go channels are pretty good at handling the synchronization as well as I can.