libuv callbacks vs. job processes for non-blocking CPU-bound Lua tasks
Maintaining UI responsiveness in Neovim during heavy computation requires choosing between event-loop-based callbacks and external process management. Since Neovim utilizes a single-threaded event loop for Lua execution, any synchronous task performed on the main thread will result in immediate input latency. Using vim.loop (libuv) primitives allows for non-