Skip to content

Instantly share code, notes, and snippets.

@softberries
Created June 24, 2020 06:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save softberries/1693760d6d51129b1ca79ad0959055c9 to your computer and use it in GitHub Desktop.
Save softberries/1693760d6d51129b1ca79ad0959055c9 to your computer and use it in GitHub Desktop.
for {
_ <- someRef.update(_ + 1)
curr <- someRef.get
_ <- IO { println(s"current value is $curr")}
} yield ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment