-
Notifications
You must be signed in to change notification settings - Fork 532
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
align scaladoc with examples from the official docs for IO.shift - fixes #559 #567
align scaladoc with examples from the official docs for IO.shift - fixes #559 #567
Conversation
Codecov Report
@@ Coverage Diff @@
## master #567 +/- ##
==========================================
+ Coverage 84.95% 88.94% +3.98%
==========================================
Files 77 77
Lines 2247 2143 -104
Branches 128 129 +1
==========================================
- Hits 1909 1906 -3
+ Misses 338 237 -101 |
* | ||
* {{{ | ||
* import cats.effect.{IO, ContextShift} | ||
* import scala.concurrent.ExecutionContext.Implicits.global |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be encouraging people to use global
like this? I'm sure this kind of thing exists elsewhere in the docs, but I'm leery of it particularly given the problems we've seen and the fact that IOApp
no longer uses it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the docs by only outlining its basic usage - that at least removes the usage of global
.
Co-Authored-By: Daniel Spiewak <djspiewak@gmail.com>
Co-Authored-By: Daniel Spiewak <djspiewak@gmail.com>
…l docs for IO.shift
…l docs for IO.shift
…l docs for IO.shift
Fixes #559