not very clear of runtime.Gosched. below is what go doc showed. so when I execute runtime.Gosched() in goroutine, it will pass the processor to other goroutine for them to run, and meanwhile it will still keep running? Is there a good example that I can try? Thanks
(base) zwang-mac:cmd2 zwang$ go doc runtime.Gosched func Gosched() Gosched yields the processor, allowing other goroutines to run. It does not suspend the current goroutine, so execution resumes automatically.