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

sbt microsites 0.7.27 #589

Merged
merged 2 commits into from
Jul 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.28"
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.0")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.5")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.3.7")
addSbtPlugin("com.47deg" % "sbt-microsites" % "0.7.16")
addSbtPlugin("com.47deg" % "sbt-microsites" % "0.7.27")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.6.1")
3 changes: 3 additions & 0 deletions site/src/main/tut/datatypes/io.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ val program: IO[Unit] =
program.unsafeRunSync()
//=> hey!
//=> hey!
()
```

The above example prints "hey!" twice, as the effect re-runs each time
Expand Down Expand Up @@ -1223,6 +1224,7 @@ program.unsafeRunSync()
//=> Running ioB
//=> Running ioC
//=> Running ioA
()
```

If any of the `IO`s completes with a failure then the result of the whole computation will be failed, while the unfinished tasks get cancelled. Example:
Expand All @@ -1241,6 +1243,7 @@ parFailure.unsafeRunSync()
//=> ioB was canceled!
//=> java.lang.Exception: boom
//=> ... 43 elided
()
```

If one of the tasks fails immediately, then the other gets canceled and the computation completes immediately, so in this example the pairing via `parMapN` will not wait for 10 seconds before emitting the error:
Expand Down