markProcessed

abstract fun markProcessed(requestId: RequestId, response: Response): Result<Unit, PostboxError>

Mark a request as processed with the given response.

Return

  • If the request was successfully marked as processed, the result will be a success with Unit

  • If the request has been already processed or marked as failed, the result will be a failure with PostboxError.StorageFailure

  • If the request is not present, the result will be a failure with PostboxError.RequestNotFound