-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fromFuture usage #38
Comments
If you don't want to use Async, you might be interested in trying bare Future. |
It makes sense, thanks for the answer! |
I agree this is not so nice and we should split the creation from the interpretation. |
Hey there, I've seen https://github.com/atnos-org/eff/blob/957fe5b514ee4afa6683fb803772234870749bb6/shared/src/main/scala/org/atnos/eff/AsyncFutureInterpreter.scala and I'm trying to figure out how to use
fromFuture
.I have a few methods returning
Future
and I'd like to incorporate them inside my effect.So, what I have so far is
and this compiles.
However, the
fromFuture
method comes fromimport interpreter._
. So here I'm coupling the interpreter and the effect building.Is there a way of working with existing futures in without coupling the specific interpreter?
The text was updated successfully, but these errors were encountered: