ee.List.getInfo
Retrieves the value of this object from the server.
If no callback function is provided, the request is made synchronously. If a callback is provided, the request is made asynchronously.
The asynchronous mode is preferred because the synchronous mode stops all other code (for example, the EE Code Editor UI) while waiting for the server. To make an asynchronous request, evaluate() is preferred over getInfo().
Returns the computed value of this object.
Usage | Returns |
---|
List.getInfo(callback) | Object |
Argument | Type | Details |
---|
this: computedobject | ComputedObject | The ComputedObject instance. |
callback | Function, optional | An optional callback. If not supplied, the call is made synchronously. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Retrieves the object's computed value, either synchronously or asynchronously, from the server."],["Asynchronous requests, preferred to avoid UI blocking, are made using `evaluate()` or by providing a callback function to `getInfo()`."],["`getInfo()` returns the computed value as an object when called with an optional callback."]]],["The `getInfo()` method retrieves an object's value from the server. It can operate synchronously or asynchronously. If no callback function is provided, the request is synchronous, halting other code execution. If a callback is provided, it runs asynchronously, which is the preferred method. `getInfo()` returns the object's computed value. The asynchronous method is preferred and can be used with the method `evaluate()`.\n"]]