Skip to content

Instantly share code, notes, and snippets.

@lynxluna
Created October 11, 2015 20:41
Show Gist options
  • Save lynxluna/972bfc8c58aeacfddc21 to your computer and use it in GitHub Desktop.
Save lynxluna/972bfc8c58aeacfddc21 to your computer and use it in GitHub Desktop.
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