Sign up
Sign in
func main() { // Create a new context being cancelled in 5 seconds. ctx, _ := cancel.WithTimeout(context.Background(), 5 * time.Second)
Minh-Phuc Tran
Souvik Haldar
Follow
--
Share
it should be context.WithCancel
Backend Developer. Fitness Enthusiast.Learner. http://www.souvikhaldar.in
Help
Status
About
Careers
Press
Blog
Privacy
Terms
Text to speech
Teams