-
Notifications
You must be signed in to change notification settings - Fork 24
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
Investigate usage of cgo.Handle
for callback handling
#18
Comments
Looks like a good idea. Would allow to get rid of callback table from Go bindings. But I wonder if the semantics of |
@arg0d why did you close the issue? |
It seems these are meant to be safe. From the docs of |
And the same for
|
😅 I somehow closed it by accident |
Implementation of |
Should look into using https://pkg.go.dev/runtime/[email protected]#Handle for callback handling, which is the recommended way of dealing with callbacks since go 1.17
https://github.com/golang/go/wiki/cgo#function-variables for reference
The text was updated successfully, but these errors were encountered: