Lines Matching defs:Context
68 type Context interface { interface
235 func WithCancel(parent Context) (ctx Context, cancel CancelFunc) {
263 func WithCancelCause(parent Context) (ctx Context, cancel CancelCauseFunc) {
268 func withCancel(parent Context) *cancelCtx {
283 func Cause(c Context) error {
315 func AfterFunc(ctx Context, f func()) (stop func() bool) {
356 Context anonMember
372 func parentCancelCtx(parent Context) (*cancelCtx, bool) {
389 func removeChild(parent Context, child canceler) {
422 Context anonMember
522 func contextName(c Context) string {
571 func WithoutCancel(parent Context) Context {
611 func WithDeadline(parent Context, d time.Time) (Context, CancelFunc) {
618 func WithDeadlineCause(parent Context, d time.Time, cause error) (Context, CancelFunc) {
689 func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) {
696 func WithTimeoutCause(parent Context, timeout time.Duration, cause error) (Context, CancelFunc) {
713 func WithValue(parent Context, key, val any) Context {
729 Context anonMember
761 func value(c Context, key any) any {