Polling utility with many configurable options
Polling2 is a utility used to wait for a function to return a certain expected condition.