summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-21 14:36:10 +0200
committerwm4 <wm4@nowhere>2016-09-21 15:47:52 +0200
commit47f3cc7e6bf78609551312f84c93cccf194a5930 (patch)
tree7376da7cbdc383d486c7a446b11837543729ad57 /DOCS
parentb521f15ae9799a08d1cb328e3c1ef294d75f30c2 (diff)
downloadmpv-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')
-rw-r--r--DOCS/man/lua.rst7
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,