1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-05 14:40:43 +00:00
mpv/DOCS
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
..
man lua: command_native_async: always callback a-sync 2022-06-22 14:44:12 +03:00
build-system-differences.md build: add meson build support 2021-11-14 19:13:10 +00:00
client-api-changes.rst player: make deprecated track/chapter/metadata events internal 2021-12-15 12:29:10 +01:00
compatibility.rst
compile-windows.md DOCS: convert 3rd party http links to https 2021-08-17 13:42:21 +00:00
contribute.md DOCS/contrinute: add commit title example prefixes 2021-08-15 22:15:27 +03:00
edl-mpv.rst edl: add a way to add tags 2021-05-11 22:18:40 +02:00
encoding.rst
interface-changes.rst x11: add --x11-present option 2022-06-22 03:55:49 +00:00
mplayer-changes.rst DOCS: convert mpv.io and github links to https 2021-08-17 13:42:21 +00:00
release-policy.md
tech-overview.txt various: fix typos 2022-04-25 09:07:18 -04:00
waf-buildsystem.rst DOCS: replace dead waf book link with working one 2021-08-17 13:42:21 +00:00