package flaky

import (
	
	
)

// withinDeadline returns whether the duration d is within context’s deadline.
func ( context.Context,  time.Duration) bool {
	,  := .Deadline()
	if ! {
		return true
	}

	// TODO(tie): allow passing clock through context.
	 := time.Until()
	return  < 
}