Lines Matching refs:cancel
26 // checkLostCancel reports a failure to the call the cancel function
30 // does not "use" the cancel function. Any reference to the variable
40 // Maps each cancel variable to its defining ValueSpec/AssignStmt.
43 // Find the set of cancel vars to analyze.
59 // ctx, cancel := context.WithCancel(...)
60 // ctx, cancel = context.WithCancel(...)
61 // var ctx, cancel = context.WithCancel(...)
64 var id *ast.Ident // id of cancel var
78 f.Badf(id.Pos(), "the cancel function returned by context.%s should be called, not discarded, to avoid a context leak",
144 // context.With{Cancel,Timeout,Deadline}.
163 // the 'cancel' variable v) to a return statement, that doesn't "use" v.
218 panic("internal error: can't find defining block for cancel var")