Anh Nhat Trannanacoder.hashnode.dev·Jun 26, 2022Cool tricks with goroutineUsing runtime.Gosched() to force schedule Goroutines A goroutine can run and occupy a thread for a long time. This should be avoided by using runtime.Gosched() to force schedule Goroutines to switch context. package main import ( "fmt" "time...226 reads100 Days of ChallengeGo LanguageAdd a thoughtful commentNo comments yetBe the first to start the conversation.