diff options
author | wm4 <wm4@nowhere> | 2016-09-21 14:36:10 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-21 15:47:52 +0200 |
commit | 47f3cc7e6bf78609551312f84c93cccf194a5930 (patch) | |
tree | 7376da7cbdc383d486c7a446b11837543729ad57 /DOCS/man/lua.rst | |
parent | b521f15ae9799a08d1cb328e3c1ef294d75f30c2 (diff) | |
download | mpv-47f3cc7e6bf78609551312f84c93cccf194a5930.tar.bz2 mpv-47f3cc7e6bf78609551312f84c93cccf194a5930.tar.xz |
lua: add API for registering idle handlers
This is only a functionality the Lua event dispatcher provides, rather
than the libmpv client API.
Diffstat (limited to 'DOCS/man/lua.rst')
-rw-r--r-- | DOCS/man/lua.rst | 7 |
1 files changed, 7 insertions, 0 deletions
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, |