getResponseAsync

suspend fun getResponseAsync(supplier: () -> String): String

Asynchronously obtains a response from the provided supplier function.

Return

The string response provided by the supplier.

Parameters

supplier

A lambda function that supplies a string.