Skip to content

Commit a9a3a70

Browse files
committed
Replace 'async' in documents to 'async_'
1 parent 2bad222 commit a9a3a70

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ below.
7676
computations. Intensive computations should be done in a separate thread (or
7777
process), and `vim.async_call` can be used to send results back to nvim.
7878

79-
* Some methods accept an `async` keyword argument: `vim.eval`, `vim.command`,
79+
* Some methods accept an `async_` keyword argument: `vim.eval`, `vim.command`,
8080
`vim.request` as well as the `vim.funcs` and `vim.api` wrappers. When
81-
`async=True` is passed the client will not wait for nvim to complete the
81+
`async_=True` is passed the client will not wait for nvim to complete the
8282
request (which also means that the return value is unavailable).
8383

8484
#### Remote (new-style) plugins
@@ -122,7 +122,7 @@ requests without nvim confusing these requests with requests from a synchronous
122122
handler. To execute an asynchronous handler even when other handlers are
123123
running, add `allow_nested=True` to the decorator. The handler must then not
124124
make synchronous nvim requests, but it can make asynchronous requests, i e
125-
passing `async=True`.
125+
passing `async_=True`.
126126

127127
You need to run `:UpdateRemotePlugins` in nvim for changes in the specifications
128128
to have effect. For details see `:help remote-plugin` in nvim.

docs/usage/python-plugin-api.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Note that this code will still block the plugin host if it does long-running com
5858
Intensive computations should be done in a separate thread (or process),
5959
and ``vim.async_call`` can be used to send results back to Neovim.
6060

61-
Some methods accept an ``async`` keyword argument:
61+
Some methods accept an ``async_`` keyword argument:
6262
``vim.eval``, ``vim.command``, ``vim.request`` as well as the ``vim.funcs`` and ``vim.api`` wrappers.
63-
When ``async=True`` is passed the client will not wait for Neovim to complete the request
63+
When ``async_=True`` is passed the client will not wait for Neovim to complete the request
6464
(which also means that the return value is unavailable).

docs/usage/remote-plugins.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ This ensures that async handlers can call requests without Neovim confusing thes
4242
To execute an asynchronous handler even when other handlers are running,
4343
add ``allow_nested=True`` to the decorator.
4444
The handler must then not make synchronous Neovim requests,
45-
but it can make asynchronous requests, i.e. passing ``async=True``.
45+
but it can make asynchronous requests, i.e. passing ``async_=True``.
4646

4747
You need to run ``:UpdateRemotePlugins`` in Neovim for changes in the specifications to have effect.
4848
For details see ``:help remote-plugin`` in Neovim.

0 commit comments

Comments
 (0)