class public FB.Waitable

Abstract representation of a class designed to

Base Class

System.Object

Follow the base class link to learn inherited methods and properties

Derived Classes

public FB.SimpleWaitable

public FB.DependentWaitable

Constructor

family FB.Waitable ()

Description

Public Methods

public void resetChange ()

Remove all event subscribers that are waiting for Change event, includingthose waiting for WaitUntilReady()

public void waitForCondition (ConditionCallback callback)

Watch for changes in ready state and result until condition issatisfied.

public void waitForValue (object expectedValue, CallbackWithObject callback)

Wait until result is ready and equal to expectedValue

public void waitUntilReady (CallbackWithObject callback)

If we don't need to wait, execute the callback, otherwiseregister it to an event that will fire once the necessaryresult is computed and ready.

Properties

public isReady

Determine whether this object is done waiting.

Getter

public bool get_isReady()

Fields

public object result

The actual result returned from server.

Events

public changed

Event to which functions should be registered in order toexecute upon readiness.

Adder

public void add_changed(OnWaitableReady eventHandler)

Remover

public void remove_changed(OnWaitableReady eventHandler)

Back to namespace FB