execute

suspend fun ImageRequest.execute(sketch: Sketch = KoinPlatform.getKoin().get<Sketch>()): ImageResult

Execute current ImageRequest synchronously in the current coroutine scope.

Note: The request will not start executing until Lifecycle state is STARTED reaches Lifecycle.State.STARTED state and View is attached to window

Return

A ImageResult.Success if the request completes successfully. Else, returns an ImageResult.Error.

See also

com.github.panpf.sketch.koin.common.test.request.ImageRequestKoinTest.testExecute