Created
April 17, 2013 19:56
-
-
Save titimoby/5407254 to your computer and use it in GitHub Desktop.
Why ? titimoby@alarmpi PiG]$ gologolo sleep.golo first
Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module snippet.sleep | |
import java.lang.Thread | |
function main = |args| { | |
println("first") | |
Thread.sleep(500) | |
println("second") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://golo-lang.org/documentation/next/#data-literals
Thread.sleep(500_L)