FB.Waitable.waitForValue

Description

Wait until result is ready and equal to expectedValue

Signature

waitForValue(Object expectedValue,  Function callback)

Parameters

expectedValueObject

Expected value

callbackFunction

Callback function that will be invoked when expected value is found

callback should be a function with no parameters.