Skip to content

Instantly share code, notes, and snippets.

@melix
Created June 11, 2014 19: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 melix/a7088697a2f2cf6929d6 to your computer and use it in GitHub Desktop.
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

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