Multiple ChoiceHard 30s
Context Cancellation
context.WithCancel's returned cancel function should be:
Options
- 1Ignored, since the runtime frees them later
- 2Called only on error, never on success
- 3Called (deferred) to release resources
- 4Stored globally, so goroutines can reuse them
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.