Skip to content

Commit

Permalink
Update Using effects example README.md
Browse files Browse the repository at this point in the history
Update `Using effects` example README.md to have more comprehensive context
  • Loading branch information
alphaho authored Dec 2, 2023
1 parent a584932 commit 88d9d0e
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 88d9d0e

Please sign in to comment.