Hi all, any idea of a better way to do this? ```fu...
# arrow
j
Hi all, any idea of a better way to do this?
Copy code
fun <A> <http://arrow.effects.IO|arrow.effects.IO><A>.toSource(): akka.stream.javadsl.Source<A, akka.NotUsed> {
    return this.attempt().unsafeRunSync().fold({ akka.stream.javadsl.Source.failed<A>(it) }, { akka.stream.javadsl.Source.single(it) })
}