Skip to content

Commit

Permalink
docs: new_async callback is not optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilal2453 authored and squeek502 committed Dec 14, 2023
1 parent 3e55ac4 commit 0bdc794
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -922,14 +922,14 @@ end)
async:send()
```

### `uv.new_async([callback])`
### `uv.new_async(callback)`

**Parameters:**
- `callback`: `callable` or `nil`
- `callback`: `callable`
- `...`: `threadargs` passed to/from `uv.async_send(async, ...)`

Creates and initializes a new `uv_async_t`. Returns the Lua userdata wrapping
it. A `nil` callback is allowed.
it.

**Returns:** `uv_async_t userdata` or `fail`

Expand Down

0 comments on commit 0bdc794

Please sign in to comment.