aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/dispatch.h
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-06-23 20:38:41 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2019-06-30 11:33:01 +0200
commit7030d7daf1f40e5a3963340d1107d7b7a713df5f (patch)
tree81180bef71ec397ba7f089b9af485dbc03a8321e /src/nvim/api/private/dispatch.h
parent0480e991d2180025ef040629c5dcd0a193055a2e (diff)
downloadrneovim-7030d7daf1f40e5a3963340d1107d7b7a713df5f.tar.gz
rneovim-7030d7daf1f40e5a3963340d1107d7b7a713df5f.tar.bz2
rneovim-7030d7daf1f40e5a3963340d1107d7b7a713df5f.zip
rename: FUNC_API_ASYNC => FUNC_API_FAST
Diffstat (limited to 'src/nvim/api/private/dispatch.h')
-rw-r--r--src/nvim/api/private/dispatch.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/api/private/dispatch.h b/src/nvim/api/private/dispatch.h
index 39aabd708a..bad5a13934 100644
--- a/src/nvim/api/private/dispatch.h
+++ b/src/nvim/api/private/dispatch.h
@@ -11,8 +11,10 @@ typedef Object (*ApiDispatchWrapper)(uint64_t channel_id,
/// functions of this type.
typedef struct {
ApiDispatchWrapper fn;
- bool async; // function is always safe to run immediately instead of being
- // put in a request queue for handling when nvim waits for input.
+ bool fast; // Function is safe to be executed immediately while running the
+ // uv loop (the loop is run very frequently due to breakcheck).
+ // If "fast" is false, the function is deferred, i e the call will
+ // be put in the event queue, for safe handling later.
} MsgpackRpcRequestHandler;
#ifdef INCLUDE_GENERATED_DECLARATIONS