1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
__done__( [error[, results]] )
Callback invoked to confirm that an asynchronous command has finished
executing.
This callback should only be called *once* per command.
In environments supporting async/await, top-level await commands are not
required to invoke this callback.
Parameters
----------
error: Error|null (optional)
Error, if an error occurred during execution, and `null`, if no error
occurred.
results: any (optional)
Command results.
Examples
--------
> function onTimeout() { __done__( null, 'foo' ) };
> var res = setTimeout( onTimeout, 1000 )
[ <number>, 'foo' ]
|