class UIng::Timer

Overview

A repeating UI timer. #stop prevents further user callbacks immediately; libui-ng removes its native timer when the next tick returns zero.

Defined in:

uing/timer.cr

Instance Method Summary

Instance Method Detail

def stop : Nil #

Stops future user callbacks. Call on the UI thread; it is safe to call this inside the callback.


[View source]
def stopped? : Bool #

Whether the timer has been stopped explicitly, by returning false, by a callback error, or by UIng.uninit.


[View source]