3 ms·
You may also simply write the following, which appears more elegant than the select. if ctx.Err() != nil { //then the context has expired or been cancell
by _caw 7y ago
You may also simply write the following, which appears more elegant than the select.
if ctx.Err() != nil {
//then the context has expired or been cancelled
}