OverviewSingleDeprecatedPropertiesEventsXSL Parameters

jsx3

class $AsyncRV

Object
->jsx3.$AsyncRV

class $AsyncRV
extends Object
The return value from an asynchronous method.

Since:

3.7

See Also:

jsx3.$Y()

Method Summary
jsx3.$AsyncRV
and(rv : jsx3.$AsyncRV...)
Creates and returns an asynchronous return value that completes when this and rv have completed.
jsx3.$AsyncRV
or(rv : jsx3.$AsyncRV...)
Creates and returns an asynchronous return value that completes when this or rv have completed.
Object
rv()
Returns the return value from the asynchronous method.
void
when(cb : Function | jsx3.$AsyncCB, rv : Object)
Registers code to be called when the asynchronous method completes.
Methods Inherited From Object
toString
Method Detail

and

jsx3.$AsyncRV and(rv : jsx3.$AsyncRV...)
Creates and returns an asynchronous return value that completes when this and rv have completed.

Parameters:

rv

Returns:

 

or

jsx3.$AsyncRV or(rv : jsx3.$AsyncRV...)
Creates and returns an asynchronous return value that completes when this or rv have completed.

Parameters:

rv

Returns:

 

rv

Object rv()
Returns the return value from the asynchronous method.

Throws:

{Error}if called before done() is called on corresponding callback object.

Returns:

 

when

void when(cb : Function | jsx3.$AsyncCB, rv : Object)
Registers code to be called when the asynchronous method completes.

If argument cb is a function, then that function will be called when the asynchronous method completes. This function will be called synchronously is the function has already completed. The asynchronous method return value will be passed as the only argument to the function.

If argument cb is an instance of jsx3.$AsyncCB, then its done() method will be called when the asynchronous method completes. The done method will be passed the rv argument it is is provided. Otherwise, it will be passed the return value of cb.

Parameters:

cb
rv