FB.Waitable.waitForCondition

Description

Watch for changes in ready state and result until condition is satisfied.

Signature

Parameters

callbackFunction

Callback function that will be invoked whenever the ready state or result changes. If callback returns true, the condition is satisfied and this callback won't be called anymore.

callback should have the following signature: function(waitable).