3 ms·
Appears to have heavy use of `async`, etc. Has anyone gone about creating JNI bindings for an `async` API? I imagine you start the pool in a context object and
by renewiltord 4y ago
Appears to have heavy use of `async`, etc. Has anyone gone about creating JNI bindings for an `async` API? I imagine you start the pool in a context object and then access the APIs through that via some callback mechanism? I'd love to read someone's example code if you're willing to share.
- subarctic 4y agoI'm not really familiar with JNI and not sure if it's different on Android vs server-side Java, but this forum thread might be interesting reading for you: https://users.rust-lang.org/t/rust-jni-android-async-callback/41016 https://users.rust-lang.org/t/rust-jni-android-async-callbac... EDIT: also maybe take a look at this? https://github.com/rousan/AndroidWithRust https://github.com/rousan/AndroidWithRust "tokio jni" is the search term that turned these up for me
- renewiltord 4y agoNice. Thank you!