returnsSuccessBy

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

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