ApiExecutor

interface ApiExecutor

A simple abstraction for executing network requests defined by ApiRequest and returning ApiResponse.

Implementations of this interface are responsible for performing the actual network operations, handling responses, retries, and error handling.

Functions

Link copied to clipboard
abstract suspend fun execute(request: ApiRequest): Result<ApiResponse>

Executes the given network request asynchronously.