Skip to content

Instantly share code, notes, and snippets.

@melix
Created June 11, 2014 19:54
Show Gist options
  • Select an option

  • Save melix/a7088697a2f2cf6929d6 to your computer and use it in GitHub Desktop.

Select an option

Save melix/a7088697a2f2cf6929d6 to your computer and use it in GitHub Desktop.
Infinite loop
import static Double.POSITIVE_INFINITY as ∞
∞.times {
println it
Thread.sleep(1000)
}
@akhikhl
Copy link
Copy Markdown

akhikhl commented Jun 11, 2014

That actually works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment