Source File
deadline.go
Belonging Package
go.pact.im/x/flaky
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 <
}
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)