From 91572ddad185c2c4f6d266543d66919543c5bb2a Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Tue, 7 Jul 2020 10:55:40 +0200 Subject: doc: mention that defer_fn applies schedule_wrap (#12601) --- src/nvim/lua/vim.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/nvim/lua/vim.lua b/src/nvim/lua/vim.lua index 771ec971b7..18256242e8 100644 --- a/src/nvim/lua/vim.lua +++ b/src/nvim/lua/vim.lua @@ -467,6 +467,8 @@ end --- Defers calling `fn` until `timeout` ms passes. --- --- Use to do a one-shot timer that calls `fn` +--- Note: The {fn} is |schedule_wrap|ped automatically, so API functions are +--- safe to call. --@param fn Callback to call once `timeout` expires --@param timeout Number of milliseconds to wait before calling `fn` --@return timer luv timer object -- cgit