So, If I want to execute the query in the fetch() ...
# arrow
s
So, If I want to execute the query in the fetch() function right there and return Either<Throwable, Player>, I don’t get much from using
IO
compared to just wrapping the
db.query
in the
runBlocking{}
and getting the result that way? Bonus for IO is that it will pack the result/error in Either automatically, but how do I “unpack” that Either from the IO wrapper?