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

Add a convenient dependent summoner for BIO* hierarchy. #562

Merged
merged 1 commit into from
Jun 28, 2019

Conversation

neko-kai
Copy link
Member

@neko-kai neko-kai commented Jun 28, 2019

Auto-narrows to the most powerful available class:

def x[F[+_, +_]: BIOAsync] = {
  F.timeout(F.forever(F.unit))(5.seconds)
}

Auto-narrows to the most powerful available class:

```scala
def x[F[+_, +_]: BIOAsync] = F.timeout(5.seconds)(F.forever(F.unit))
```
@neko-kai neko-kai requested a review from pshirshov June 28, 2019 00:55
@neko-kai neko-kai merged commit 4978199 into develop Jun 28, 2019
@neko-kai neko-kai deleted the feature/noticket-add-F-syntax-dependent-summoner branch June 28, 2019 00:58
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.

1 participant