Skip to content

Instantly share code, notes, and snippets.

@dkomanov
Created May 22, 2020 21:54
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 dkomanov/8efe8c0e082e8b7c56f0f25a50f8e945 to your computer and use it in GitHub Desktop.
Save dkomanov/8efe8c0e082e8b7c56f0f25a50f8e945 to your computer and use it in GitHub Desktop.
[writing-async-app-in-scala-part-1] sync if-statement
def condition: Boolean = ...
def action1(): Unit = ...
def action2(): Unit = ...
if (condition) {
action1()
} else {
action2()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment