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.
On Monday, April 8, 2019 at 9:38:40 AM UTC-4, go je wrote: > > ascending only work if i cut the first sleep half second to print them > alternately but isn't they sequentially running? > > On Mon, Apr 8, 2019 at 9:30 PM go je <laure...@gmail.com <javascript:>> > wrote: > >> https://play.golang.org/p/0TIxVFuqGoB >> >> -- >> 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 golan...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > > > > > > lol > -- 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.