July 2017
Beginner to intermediate
358 pages
10h 54m
English
The WithCancel method returns a copy of the parent context with a cancel function, calling the cancel function releases resources associated with the context and should be called as soon as operations running in the Context type are complete:
func WithCancel(parent Context) (ctx Context, cancel CancelFunc)
Read now
Unlock full access