Description
You can easily work around this by setting the timeout value to 1ms, but 0ms should mean 0ms or at least have the behavior documented.
You can easily work around this by setting the timeout value to 1ms, but 0ms should mean 0ms or at least have the behavior documented.
Looks like Metadata.awaitUpdate() always calls Object.wait(maxWaitMs) even if maxWaitMs is 0. Unfortunately Object.wait(0) doesn't mean wait for zero ms, it means wait forever. So it should be an easy fix--we need an if statement here to check for a wait time of 0.