Rearrange the code blocks so that they would correctly listen to processingCtx context cancellation and prints "the context was canceled" to the console.
Context cancellation and timeouts
Listen to the cancellation
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
}
select {
fmt.Println("the context was canceled")
case <-processingCtx.Done():
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.