Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for StartWithContext (0.11 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/wait/wait.go

    func (g *Group) StartWithChannel(stopCh <-chan struct{}, f func(stopCh <-chan struct{})) {
    	g.Start(func() {
    		f(stopCh)
    	})
    }
    
    // StartWithContext starts f in a new goroutine in the group.
    // ctx is passed to f as an argument. f should stop when ctx.Done() is available.
    func (g *Group) StartWithContext(ctx context.Context, f func(context.Context)) {
    	g.Start(func() {
    		f(ctx)
    	})
    }
    
    // Start starts f in a new goroutine in the group.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 7.1K bytes
    - Viewed (0)
Back to top