By refactoring the Ensured, DeferredHelper and Eventually classes to use Options for representing timeout constraints, we dramatically simplify the API and increase the flexibility for defining timeouts. Furthermore, by using Options we can remove the requirement for and to implement the TimeoutConstraint interface.
By refactoring the Ensured, DeferredHelper and Eventually classes to use Options for representing timeout constraints, we dramatically simplify the API and increase the flexibility for defining timeouts. Furthermore, by using Options we can remove the requirement for and to implement the TimeoutConstraint interface.