This is a fork of a utility library from https://github.com/kubernetes/kubernetes/tree/master/pkg/util/wait