Requests assets for a site and waits for the result.
- Parameters:
- siteId: The site ID to fetch assets for.
- pollingInterval: The interval between status checks (default: 0.5 seconds).
- timeout: Maximum time to wait for completion (default: 60 seconds).
- Returns: An AssetResult containing the assets.
- Throws:
- CancellationError if the Task running this function was cancelled.
- TimeoutError if the function timed out before it could complete execution.
- SitesResult.Error if there was an error specific to the network query.
Requests assets for a site and waits for the result.
- Parameters:
- siteId: The site ID to fetch assets for.
- pollingInterval: The interval between status checks (default: 0.5 seconds).
- timeout: Maximum time to wait for completion (default: 60 seconds).
- Returns: An
AssetResultcontaining the assets.- Throws:
-
CancellationErrorif the Task running this function was cancelled.-
TimeoutErrorif the function timed out before it could complete execution.-
SitesResult.Errorif there was an error specific to the network query.