aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-03-04 10:45:20 +0100
committerGitHub <noreply@github.com>2023-03-04 10:45:20 +0100
commita4f443994bb91321b00f29af9e6357df9102ce75 (patch)
tree398e5b97293db8e9e98899c1cfdadd86b843e6ae
parentde14f2c928f913d4fb617d693024eec5cf2223ec (diff)
downloadrneovim-a4f443994bb91321b00f29af9e6357df9102ce75.tar.gz
rneovim-a4f443994bb91321b00f29af9e6357df9102ce75.tar.bz2
rneovim-a4f443994bb91321b00f29af9e6357df9102ce75.zip
docs(luvref): update to version bump (#22508)
-rw-r--r--runtime/doc/luvref.txt19
1 files changed, 11 insertions, 8 deletions
diff --git a/runtime/doc/luvref.txt b/runtime/doc/luvref.txt
index 66cee0649c..0fdd010880 100644
--- a/runtime/doc/luvref.txt
+++ b/runtime/doc/luvref.txt
@@ -3360,14 +3360,17 @@ file system operations, as well as `getaddrinfo` and `getnameinfo` requests.
uv.new_work({work_callback}, {after_work_callback}) *uv.new_work()*
Parameters:
- - `work_callback`: `function`
+ - `work_callback`: `function` or `string`
- `...`: `threadargs` passed to/from
`uv.queue_work(work_ctx, ...)`
- `after_work_callback`: `function`
- `...`: `threadargs` returned from `work_callback`
Creates and initializes a new `luv_work_ctx_t` (not
- `uv_work_t`). Returns the Lua userdata wrapping it.
+ `uv_work_t`).
+ `work_callback` is a Lua function or a string containing Lua
+ code or bytecode dumped from a function. Returns the Lua
+ userdata wrapping it.
Returns: `luv_work_ctx_t userdata`
@@ -3468,16 +3471,16 @@ uv.new_thread([{options}, ] {entry}, {...}) *uv.new_thread()*
Parameters:
- `options`: `table` or `nil`
- `stack_size`: `integer` or `nil`
- - `entry`: `function`
+ - `entry`: `function` or `string`
- `...`: `threadargs` passed to `entry`
Creates and initializes a `luv_thread_t` (not `uv_thread_t`).
Returns the Lua userdata wrapping it and asynchronously
- executes `entry`, which can be either a Lua function or a Lua
- function dumped to a string. Additional arguments `...` are
- passed to the `entry` function and an optional `options` table
- may be provided. Currently accepted `option` fields are
- `stack_size`.
+ executes `entry`, which can be either a Lua function or a
+ string containing Lua code or bytecode dumped from a function.
+ Additional arguments `...` are passed to the `entry` function
+ and an optional `options` table may be provided. Currently
+ accepted `option` fields are `stack_size`.
Returns: `luv_thread_t userdata` or `fail`