requestSiteInfo
Requests site info and waits for the result.
Declaration
func requestSiteInfo(siteId: String, pollingInterval: TimeInterval = 0.5, timeout: TimeInterval = 60.0) async throws -> SiteResult
Summary
Returns
A SiteResult containing the site info.
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.
Parameters
| Name | Type | Summary |
|---|---|---|
| siteId | String | The site ID to fetch info for. |
| pollingInterval | TimeInterval | The interval between status checks (default: 0.5 seconds). |
| timeout | TimeInterval | Maximum time to wait for completion (default: 60 seconds). |
Requests site info and waits for the result.