From 47f3cc7e6bf78609551312f84c93cccf194a5930 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 21 Sep 2016 14:36:10 +0200 Subject: lua: add API for registering idle handlers This is only a functionality the Lua event dispatcher provides, rather than the libmpv client API. --- DOCS/man/lua.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'DOCS/man/lua.rst') diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index 256f6bd9ed..f1d9945055 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -456,6 +456,13 @@ are useful only in special situations. ``mp.get_wakeup_pipe()`` if you're interested in properly working notification of new events and working timers. +``mp.register_idle(fn)`` + Register an event loop idle handler. Idle handlers are called before the + script goes to sleep after handling all new events. This can be used for + example to delay processing of property change events: if you're observing + multiple properties at once, you might not want to act on each property + change, but only when all change notifications have been received. + ``mp.enable_messages(level)`` Set the minimum log level of which mpv message output to receive. These messages are normally printed to the terminal. By calling this function, -- cgit v1.2.3