Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: new_async callback is not optional #682

Merged
merged 1 commit into from Dec 14, 2023
Merged

Conversation

Bilal2453
Copy link
Contributor

From what I can see, the callback argument is not optional and can't be nil.

See https://github.com/luvit/luv/blob/master/src/async.c#L38.

I can't be 100% sure that the docs are wrong here and not the code itself for not allowing optional callbacks, but I can't see why would anyone need to create an async handle with no callback as that is counterintuitive.

Copy link
Member

@squeek502 squeek502 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Agreed about the nil callback.

@squeek502 squeek502 merged commit 0bdc794 into luvit:master Dec 14, 2023
14 checks passed
@Bilal2453 Bilal2453 deleted the patch-4 branch December 14, 2023 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants