pub fn nvim_wrap_async<'a>(
    lua: &'a Lua,
    async_fn: LuaFunction<'a>,
    millis: u64,
) -> LuaResult<LuaFunction<'a>> {
    let schedule_fn = lua
        .load(chunk! {
            function(cb)
                return vim.defer_fn(cb, $millis)
            end
        })
        .eval()?;
    wrap_async(lua, async_fn, schedule_fn)
}
/// Specialty function that performs wrap_async using `vim.defer_fn` from neovim
Specialty function that performs wrap_async using `vim.defer_fn` from neovim
Specialty function that performs wrap_async using ` vim . defer_fn ` from neovim
pub fn nvim_wrap_async<'a>(
    lua: &'a Lua,
    async_fn: LuaFunction<'a>,
    millis: u64,
) -> LuaResult<LuaFunction<'a>> {
    let schedule_fn = lua
        .load(chunk! {
            function(cb)
                return vim.defer_fn(cb, $millis)
            end
        })
        .eval()?;
    wrap_async(lua, async_fn, schedule_fn)
}
pub fn nvim_wrap_async < ' a > ( lua : & ' a Lua , async_fn : LuaFunction < ' a > , millis : u64 , ) -> LuaResult < LuaFunction < ' a > > { let schedule_fn = lua . load ( chunk ! { function ( cb ) return vim defer_fn ( cb $ millis ) end } ) . eval ( ) ? ; wrap_async ( lua , async_fn , schedule_fn ) }
Specialty function that performs wrap_async using `vim.defer_fn` from neovim
Specialty function that performs wrap_async using ` vim . defer_fn ` from neovim
lua
&'a Lua
async_fn
LuaFunction<'a>
millis
u64