Saves the current buffer contents and waits for completion.
- Parameters:
- timeout: Maximum duration in seconds to wait (default 30 seconds).
- pollingInterval: Interval in seconds between progress checks (default 0.5 seconds).
- Returns: The SaveResult containing the save path on success.
- Throws:
- NSDKError.invalidOperation if the buffer is empty.
- TimeoutError if the save does not complete within the timeout.
- CancellationError if the running Task is cancelled.
- SaveError.saveFailed if the native save operation failed.
Saves the current buffer contents and waits for completion.
- Parameters:
- timeout: Maximum duration in seconds to wait (default 30 seconds).
- pollingInterval: Interval in seconds between progress checks (default 0.5 seconds).
- Returns: The
SaveResultcontaining the save path on success.- Throws:
-
NSDKError.invalidOperationif the buffer is empty.-
TimeoutErrorif the save does not complete within the timeout.-
CancellationErrorif the running Task is cancelled.-
SaveError.saveFailedif the native save operation failed.