spin Wait Bounded For
Waits for the result of the given getter function in the spin-loop until the result is not null. Exits the spin-loop after a certain number of spin-loop iterations.
Return
The result of waiting, or null if the spin-wait loop exited because the bound was reached.
Parameters
getter
A lambda function that returns the result to wait for.