Skip to content

Commit

Permalink
Merge pull request #135 from alphaho/patch-1
Browse files Browse the repository at this point in the history
Update `Using effects` example in README.md
  • Loading branch information
fwbrasil authored Dec 2, 2023
2 parents 4f1b8c3 + 88d9d0e commit 961e290
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ Effects follow a naming convention for common operations:
Though named `run`, effect handling doesn't necessarily execute the computation immediately, as the effect handling itself can also be suspended if another effect is pending.

```scala
val a: Int > Options = 42

// Handle the 'Options' effect
val b: Option[Int] > Any =
Options.run(a)
Expand Down

0 comments on commit 961e290

Please sign in to comment.