From 796983b097b2f27a1bc2f334d7dafcd9590553ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Alarc=C3=B3n?= <33580722+paualarco@users.noreply.github.com> Date: Sat, 15 May 2021 17:12:05 +0200 Subject: [PATCH 1/2] Docs typo --- docs/std/deferred.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/std/deferred.md b/docs/std/deferred.md index 52462719ee..5b578ff076 100644 --- a/docs/std/deferred.md +++ b/docs/std/deferred.md @@ -10,7 +10,7 @@ When created, a `Deferred` is empty. It can then be completed exactly once, and ```scala mdoc:silent abstract class Deferred[F[_], A] { def get: F[A] - def complete(a: A): F[Unit] + def complete(a: A): F[Boolean] } ``` From 997c16ebe817a43b35bc6cd91b5bfb45d998acc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Alarc=C3=B3n?= <33580722+paualarco@users.noreply.github.com> Date: Sat, 15 May 2021 17:14:09 +0200 Subject: [PATCH 2/2] Update tutorial.md --- docs/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index e6455403cf..acda3cb002 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -623,7 +623,7 @@ the output of each fiber and and applies a given function to them. In our case both producer and consumer shall run forever until user presses CTRL-C which will trigger a cancelation. -Alternatively we could have used `start` method to explicitely create new +Alternatively we could have used `start` method to explicitly create new `Fiber` instances that will run the producer and consumer, then use `join` to wait for them to finish, something like: