Utils.delay(delay, handler)

Calls a funtion after a delay. Delay is defined in seconds.
译:调用延迟后的功能。延迟在秒内定义。

Arguments(参数)
  1. delay — A number, representing seconds. 译:一个数字,代表秒。
  2. handler — A function. 译:一个函数。
Utils.delay 0.5, ->
    print "hello"

# Output: "hello", after 0.5 seconds

results matching ""

    No results matching ""