Skip to content
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

decouple from frees-async #297

Merged
merged 2 commits into from Jun 5, 2018
Merged

decouple from frees-async #297

merged 2 commits into from Jun 5, 2018

Conversation

pepegar
Copy link
Member

@pepegar pepegar commented Jun 4, 2018

bring the listenableFuture2Async function to the project, and don't
use frees-async-* packages

FIXES #297

bring the listenableFuture2Async function to the project, and don't
use frees-async-* packages
@@ -79,4 +80,20 @@ object monixCalls {
outputObserver
))
)

private[this] def listenableFuture2Async[F[_], A](
fa: => ListenableFuture[A])(implicit F: Async[F], E: ExecutionContext): F[A] =
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed teh AsyncContext[F] requirement with an Async[F] requirement, which is the same idea.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can restrict the implicit req to the Effect typeclass?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Effect is an Async, so it would be widening. Also, we're not using runAsync on the F, so we don't need Effect, right?

@pepegar pepegar requested review from juanpedromoreno and fedefernandez and removed request for juanpedromoreno June 4, 2018 15:07
@juanpedromoreno
Copy link
Member

is this fixing #297 ?

@pepegar
Copy link
Member Author

pepegar commented Jun 4, 2018

Ah yes, I forgot mentioning it in the comment

@juanpedromoreno
Copy link
Member

I'd suggest removing this: https://github.com/frees-io/freestyle-rpc/blob/master/project/ProjectPlugin.scala#L54.

We can use the grpc guava version, which it's already available in the classpath.

Copy link
Member

@juanpedromoreno juanpedromoreno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@pepegar pepegar merged commit 4396789 into master Jun 5, 2018
@pepegar pepegar deleted the ppg/decouple-frees-async branch June 6, 2018 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants