til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

How to sleep

Sometimes when you a fooling around with some code, it would be nice if it just ran a bit slower or waited patiently for you - the user.

My languages support sleep

time.Sleep is the Go equivalent.

time.Sleep(1 * time.Second)

Resources and References

  1. time.Sleep() Function in Golang With Examples
  2. pkg.go.dev/time: Sleep