AuctionsHttpService

Interface for the auctions service to enable dependency injection and testing

Inheritors

Functions

Link copied to clipboard
abstract suspend fun runAuctions(request: AuctionRequest): AuctionResponse

Executes an auction request and returns the response. Implementations must run the request off the caller's thread, so that this is safe to call from any dispatcher.

Link copied to clipboard

Executes an auction request and returns the response, blocking the calling thread. Never call this from the main thread; prefer runAuctions from a coroutine.