Welcome! Got a question? Do you have -Ypartial-unification turned on? Other FAQs: http://typelevel.org/cats/faq.html
if you want to find the first working resource, acquire, and keep it open, that sucks, and is harder - please see my blog post on concurrent resource caching and adapt for your needs. https://gist.github.com/Daenyth/28243952f1fcfac6e8ef838040e8638e
operation
is a function passed in, correct?
Yes
keypool
WIP package for Resource
pooling
operation
as a parameter, and just call use
, it's much easier
resourceFor(input).attempt
=> Resource[F, Either[Throwable, A]]
Resource
a MonadError?
use
or allocated
retry
to see what you need to do
collectFirst
if they all fail the stream never terminates
repeatEval/unfold
of sorts :)
List[F[A]] => ...
but not for Stream[F, A] =>...
when you can't assume finiteness anymore