-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: Remove blocking for BEAM thread #98
Conversation
3a71961
to
297d23d
Compare
3dfbc5d
to
e68d817
Compare
Barecheck - Code coverage reportTotal: 100.00%Your code coverage diff: 0.00% ▴ ✅ All code changes are covered |
e68d817
to
fc8697c
Compare
fc8697c
to
f00133f
Compare
@@ -66,6 +67,40 @@ where | |||
}); | |||
} | |||
|
|||
// workarounf for future created by async block is not `Send` at send_async_nif_result | |||
pub fn async_nif_thread_spawn<T, E, Fn, Fut>(env: Env, future: Fn) -> NifResult<(Atom, Atom)> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah i see. you're defining your own future to handle Send + Sync.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
versatica/mediasoup#729
This fix has been merged and I can remove this workaround later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Async is definitely the future so great job!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😆
https://ovice.atlassian.net/browse/APP-518
rusterlium/rustler#409