With closures and simple scheduler https://github.com/eyenalxai/cogocoroutines
Have you ever put a profiling into the code and check if it's truly "single" "threaded"?
well, runtime.NumGoroutine() never returned more than 1 at any point
Check the number of machine threads.
Обсуждают сегодня