1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-01 04:31:39 +00:00
mpv/DOCS/man
CogentRedTester 099ae86717 lua: command_native_async: always callback a-sync
Previously if the raw command_native_async returned an error then the
callback function was run directly. This meant that script writers
potentially had to account for both synchronous and asynchronous logic
in the callback, which can happen even with seemingly 'safe' commands
if the mpv event queue is full.

This was at odds with the Javascript implementation of
the function, which always runs the callback asynchronously.

Now the mp.add_timeout function is used to run the callback
asynchronously on error, replicating the Javascript implementation.

This provides consistency for developers in how the callback is handled
in Lua, and increases consistency between the Lua and Javascript APIs.
2022-06-22 14:44:12 +03:00
..
af.rst various: remove trailing whitespace 2022-05-14 14:51:34 +00:00
ao.rst DOCS/ao: remove only usage of git.io link shortening service 2022-04-28 01:07:11 +03:00
changes.rst
console.rst
encode.rst
input.rst DOCS/input: fix typo "NANME" -> "NAME" 2022-05-02 13:24:07 +00:00
ipc.rst
javascript.rst lua: command_native_async: always callback a-sync 2022-06-22 14:44:12 +03:00
libmpv.rst
lua.rst lua: command_native_async: always callback a-sync 2022-06-22 14:44:12 +03:00
mpv.rst DOCS/{mpv,options}: document the watch later functionality 2022-04-21 15:07:56 +00:00
options.rst x11: add --x11-present option 2022-06-22 03:55:49 +00:00
osc.rst osc.lua: add idlescreen and osc-idlescreen 2022-06-04 14:48:32 +00:00
stats.rst
vf.rst
vo.rst vo: add new vaapi-wayland driver 2022-05-24 21:39:34 +00:00