AsyncWait

class AsyncWait : public Handler

MessageHandler object for asynchronous waiting.

Summary

Type Method and Description
void end()

Finish waiting, moving on to handle the message.

Handler invoke(object v)

handle a message or an object

void dispose()

Force dispose object immediately.

String toString()

Return string representation of object, normally is “[Native Object]” and can be implemented by object itself.

Value toJSON(String key)

Return JSON representation of object, normally is readable attributes collection.

Value valueOf()

Return JSON representation of object.

Method Detail

end

void end()

Finish waiting, moving on to handle the message.

invoke

Handler invoke(object v)

handle a message or an object

Parameters

  • v specify the message or object to be handled

Returns

return the handler of the next step

dispose

void dispose()

Force dispose object immediately.

toString

String toString()

Return string representation of object, normally is “[Native Object]” and can be implemented by object itself.

Returns

Return string representation

toJSON

Value toJSON(String key)

Return JSON representation of object, normally is readable attributes collection.

Parameters

  • key Not used

Returns

Return JSON representation

valueOf

Value valueOf()

Return JSON representation of object.

Returns

Return JSON representation of object