Small async library for Neovim plugins
Use this to create a function which executes in an async context but called from a non-async context. Inherently this cannot return anything since it is non-blocking
argc
(integer
): The number of arguments of func. Defaults to 0func
(function
):
argc
(integer
): The number of arguments of func. Defaults to 0func
(function
):...
(any[]
): arguments forfunc
func
(function
):
Creates an async function with a callback style function.
argc
(integer
): The number of arguments of func. Must be included.func
(function
): A callback style function to be converted. The last argument must be the callback.
Run a collection of async functions (thunks
) concurrently and return when
all have finished.
n
(integer
): Max number of thunks to run concurrentlythunks
(function[]
):interrupt_check
(function
): Function to abort thunks between calls
Partially applying arguments to an async function
fn
(function
):...
: arguments to apply tofn
An async function that when called will yield to the Neovim scheduler to be able to call the API.