-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
[BUG] Example not working. nio.uv
#2
Comments
This is because you haven't ran the code in So what's actually happening is that |
Ooh I see. That cleared up a lot of things. Thank you very much. |
BTW, if that's the case, when it is not wrapped, the function type definitions do not match, right? @rcarriga Does that mean that it is not intended to be run outside of a wrap function? |
The intention was to allow it to be flexible for using in async functions or outside but I think the default behaviour should raise an error, so I've allowed users to call it from a non-async context with an extra option |
This is a nice idea, and I love that it is true by default. However, this fix will not solve the problem that the function annotations are not correct. I'd love to hear your opinion @rcarriga . |
The function can no longer be called from a non-async context which means there's no way to get the previously incorrect return values and so the signature is correct, no? |
Oh that's right. Thanks. |
NeoVim Version
Describe the bug
Hi, thanks for an interesting plugin.
I think the following code in the README does not work.
If I understand correctly, the return value of
nio.uv.fs_open
is a single int (what should befile_fd
), and does not return the error state.To Reproduce
Am I understanding something wrong?
The text was updated successfully, but these errors were encountered: