returnsSuccessBy

infix fun <T> AnsweringScope<in Result<T>>.returnsSuccessBy(function: () -> T)(source)

Function call returns Result.success with value provided each time by function.