Home | History | Annotate | Download | only in context

Lines Matching refs:Canceled

13 // WithTimeout, or WithValue. When a Context is canceled, all
14 // Contexts derived from it are also canceled.
21 // child and its children until the parent is canceled or the timer
64 // should be canceled. Deadline returns ok==false when no deadline is
69 // context should be canceled. Done may return nil if this context can
70 // never be canceled. Successive calls to Done return the same value.
100 // Canceled if the context was canceled or DeadlineExceeded if the
153 // Canceled is the error returned by Context.Err when the context is canceled.
154 var Canceled = errors.New("context canceled")
166 // An emptyCtx is never canceled, has no values, and has no deadline. It is not
201 // Background returns a non-nil, empty Context. It is never canceled, has no
232 return &c, func() { c.cancel(true, Canceled) }
243 // propagateCancel arranges for child to be canceled when parent is.
246 return // parent is never canceled
251 // parent has already been canceled
302 // A canceler is a context type that can be canceled directly. The
309 // A cancelCtx can be canceled. When canceled, it also cancels any children
344 return // already canceled
382 return c, func() { c.cancel(true, Canceled) }
391 return c, func() { c.cancel(true, Canceled) }