Convert Java Futures to Dart Futures #1213
Labels
contributions-welcome
Contributions welcome to help resolve this (the resolution is expected to be clear from the issue)
lang-java
Related to Java support
package:jni
package:jnigen
Uh oh!
There was an error while loading. Please reload this page.
@Anikate-De Feel free to tackle this.
One design could be to include a generic
JFuture<$T extends JObject> extends JObject
inpackage:jni/util/concurrent/jfuture.dart
similar toJList
.This class can have a method called
Future<$T> toDartFuture({bool releaseOriginal = false})
so we can use Dart niceties likeawait
on it. I have included a way to dotoDartFuture
in #1211, with a bit of modification, you can reuse the same code.The text was updated successfully, but these errors were encountered: