save
Asynchronously saves the current buffer and polls until the operation is complete. This function initiates the save operation and then suspends until the save process finishes, either with a success, a failure, or a timeout.
Declaration
suspend fun save( timeoutMillis: Long = TIMEOUT_MS ): AsyncResult<DashcamSaveResult, DashcamSaveError>
Summary
Returns
An [AsyncResult] which will be either [AsyncResult.Success] containing the final [DashcamSaveResult] on success, [AsyncResult.Error] detailing the failure reason, or [AsyncResult.Timeout] indicating a timeout.
Asynchronously saves the current buffer and polls until the operation is complete. This function initiates the save operation and then suspends until the save process finishes, either with a success, a failure, or a timeout.