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

align scaladoc with examples from the official docs for IO.shift - fixes #559 #567

Merged
merged 4 commits into from
Jun 14, 2019

Conversation

TomTriple
Copy link

@TomTriple TomTriple commented Jun 14, 2019

Fixes #559

@codecov-io
Copy link

codecov-io commented Jun 14, 2019

Codecov Report

Merging #567 into master will increase coverage by 3.98%.
The diff coverage is n/a.

@@            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

core/shared/src/main/scala/cats/effect/IO.scala Outdated Show resolved Hide resolved
core/shared/src/main/scala/cats/effect/IO.scala Outdated Show resolved Hide resolved
*
* {{{
* import cats.effect.{IO, ContextShift}
* import scala.concurrent.ExecutionContext.Implicits.global
Copy link
Member

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.

Copy link
Author

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.

TomTriple and others added 3 commits June 14, 2019 18:10
Co-Authored-By: Daniel Spiewak <djspiewak@gmail.com>
Co-Authored-By: Daniel Spiewak <djspiewak@gmail.com>
@djspiewak djspiewak merged commit 6b87501 into typelevel:master Jun 14, 2019
rossabaker pushed a commit to rossabaker/cats-effect that referenced this pull request Jul 30, 2019
rossabaker pushed a commit to rossabaker/cats-effect that referenced this pull request Jul 30, 2019
rossabaker pushed a commit to rossabaker/cats-effect that referenced this pull request Jul 30, 2019
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.

IO.shift(ExecutionContext) documentation code doesn't pass the ExecutionContext
3 participants