execute

abstract suspend fun execute(request: ImageRequest): ImageResult

Execute the request in the current coroutine scope.

NOTE: If ImageRequest.target is a ViewTarget, the job will automatically be cancelled if its view is detached.

Return

A SuccessResult if the request completes successfully. Else, returns an ErrorResult.

Parameters

request

The request to execute.