Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Bar.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import scala.concurrent.duration._


object Test {
lazy val delayedValue: String = {
Thread.sleep(5.seconds.toMillis)
println("Evaluated!")
"Value"
}

def main(args: Array[String]): Unit = {
println("Start!")
println("I will happen before `delayedValue` evaluation :(")
foo(delayedValue)
println(delayedValue)
}

def foo(bar: String) = {
println("I will happen after `delayedValue` evaluation! :D")
}
}
4 changes: 1 addition & 3 deletions foo.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Once upon a time, nestled within the data-swept realm of the Internet, existed an ancient, abandoned Git repository named CodeLandia. For eons, it languished in obscurity, haunted by forgotten snippets of codes and unresolved bugs. One day, a valiant young programmer named Ada discovered CodeLandia, recognizing its potential. With a brave heart and swift fingers, she resolved the bugs, streamlined the code, and breathed life into the abandoned repository. And thus, CodeLandia bloomed, transforming from a forgotten relic into a thriving, useful repository, a testament to Ada's diligence and the undying magic of code.

Change!

More change!
#_#