From 44f8dccfb6054b08803101ab34dffd9cc8a6245f Mon Sep 17 00:00:00 2001 From: "Avi Halachmi (:avih)" Date: Tue, 12 Mar 2019 11:35:55 +0200 Subject: js: expose mpv_abort_async_command() (match dbe831bd) With minor difference from lua, as documented. --- DOCS/man/javascript.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'DOCS/man') diff --git a/DOCS/man/javascript.rst b/DOCS/man/javascript.rst index 77a2ad8817..8399c77d6a 100644 --- a/DOCS/man/javascript.rst +++ b/DOCS/man/javascript.rst @@ -96,8 +96,10 @@ Where the Lua APIs use ``nil`` to indicate error, JS APIs use ``undefined``. ``mp.command_native(table [,def])`` (LE) -``mp.command_native_async(table [,fn])`` (LE) Note: ``error`` is empty string on -success. +``id = mp.command_native_async(table [,fn])`` (LE) Notes: ``id`` is true-thy on +success, ``fn`` is called always a-sync, ``error`` is empty string on success. + +``mp.abort_async_command(id)`` ``mp.get_property(name [,def])`` (LE) -- cgit v1.2.3