On Mon, Apr 8, 2019 at 10:15 AM T L <tapir....@gmail.com> wrote: > time.Sleep is not a synchronization method. > time.Sleep(dt) means pausing the execution of the current goroutine for at > least dt duration. > The actual paused duration may be longer than dt. >
Not only is sleep not a synchronization method but I/O need only grab the data and queue some work to push it out later. Look at the I/O you are using in more depth. "Go has a scheduler that lets you write synchronous code, and does context switching on its own and uses async IO under the hood." ( https://stackoverflow.com/questions/36112445/golang-blocking-and-non-blocking ). Summary look under the I/O hood too. -- T o m M i t c h e l l -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.