Danilo Herrera
06/08/2019, 4:46 PMinterface NameFetcher<F> : Async<F> {
fun fetchName(): Kind<F, String> = defer { just("bob") }
}
If I want an IO implementation, then IO conveniently provides an async delegate:
object IONameFetcher : NameFetcher<ForIO>, Async<ForIO> by IO.async() {}
However, I am confused in the case that I want a Try implementation. How can I satisfy the Async<ForTry> dependency?