Event loop and application lifetime.
This class initializes a GUI event loop, and provides APIs to manage application's lifetime. Depending on the runtime you use, Yue may or may not provide this API.
This class can not be created by user, you can only receive its global
instance from the
lifetime property of the module:
local gui = require('yue.gui') gui.lifetime:run()
Enter event loop.
Quit event loop.
task to event loop.
task to event loop and execute it after
integerms - The number of milliseconds to wait
Emitted when received