You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: context.go
    path of file: ./repos/zeebe/clients/go/vendor/github.com/cenkalti/backoff/v4
    
    the code of the file until where you have to start completion: package backoff

import (
	"context"
	"time"
)

// BackOffContext is a backoff policy that stops retr
    
func (b *backOffContext) NextBackOff() time.Duration {
	select {
	case <-b.ctx.Done():
		return Stop
	default:
		return b.BackOff.NextBackOff()
	}
}