Created
October 11, 2015 20:41
-
-
Save lynxluna/972bfc8c58aeacfddc21 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var idler = uv_idle_t() | |
uv_idle_init(uv_default_loop(), &idler) | |
uv_idle_start(&idler, { (_:UnsafeMutablePointer<uv_idle_t>) -> Void in print("Yay")}) | |
print("Idling...") | |
uv_run(uv_default_loop(), UV_RUN_DEFAULT) | |
uv_loop_close(uv_default_loop()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment