neovim / pynvim

Python client and plugin host for Nvim
http://pynvim.readthedocs.io/en/latest/
Apache License 2.0
1.52k stars 118 forks source link

Multiple async_call from different non-main thread are not serialized #441

Closed lriuui0x0 closed 4 years ago

lriuui0x0 commented 4 years ago

If we make multiple async_call from non-main thread, these functions will be executed in an interleaved fashion, instead of one following the other.

Is this expected? If so, how to work around this?

justinmk commented 4 years ago

it's expected. You need to use an event queue.

see also https://github.com/neovim/pynvim/issues/229