Method AsyncResult():signal() Foundation

Signals successful completion with a result value.

Syntax
:signal( <xValue> ) --> self
Parameters
<xValue>
The result value of the completed operation.
Return

This method returns self.

Description

This method is called by the producer of the AsyncResult to indicate that the asynchronous operation has completed successfully. It transitions the AsyncResult from the "waiting" state to the "finished" state and stores the provided result value.

If codeblocks have been registered through :then() or :finally(), they will be executed when this method is called.

This method has no effect if the AsyncResult is not in the "waiting" state.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.