Requests self user info and waits for the result.
Uses the user ID from the authenticated session's metadata.
- Parameters:
- pollingInterval: The interval between status checks (default: 0.5 seconds).
- timeout: Maximum time to wait for completion (default: 60 seconds).
- Returns: A UserResult containing the user info.
- 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.
- NsdkError.invalidOperation if no access token was available.
Requests self user info and waits for the result.
Uses the user ID from the authenticated session's metadata.
- Parameters:
- pollingInterval: The interval between status checks (default: 0.5 seconds).
- timeout: Maximum time to wait for completion (default: 60 seconds).
- Returns: A
UserResultcontaining the user 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.-
NsdkError.invalidOperationif no access token was available.