Method AsyncResult():new() Foundation

Initializes a new AsyncResult instance.

Syntax
:new( <bCodeblock> ) --> self
Parameters
<bCodeblock>
Optional - A codeblock to execute when the operation completes successfully.
Return

This method returns self.

Description

Creates and initializes a new AsyncResult object. The object is created in the "waiting" state, indicating that the asynchronous operation is still in progress. Optionally, an initial success codeblock can be provided.

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.