-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Labels
contributions-welcomeContributions welcome to help resolve this (the resolution is expected to be clear from the issue)Contributions welcome to help resolve this (the resolution is expected to be clear from the issue)lang-javaRelated to Java supportRelated to Java supportpackage:jnipackage:jnigen
Description
@Anikate-De Feel free to tackle this.
One design could be to include a genericJFuture<$T extends JObject> extends JObject in package:jni/util/concurrent/jfuture.dart similar to JList.
This class can have a method called Future<$T> toDartFuture({bool releaseOriginal = false}) so we can use Dart niceties like await on it. I have included a way to do toDartFuture in #1211, with a bit of modification, you can reuse the same code.
Anikate-De
Metadata
Metadata
Assignees
Labels
contributions-welcomeContributions welcome to help resolve this (the resolution is expected to be clear from the issue)Contributions welcome to help resolve this (the resolution is expected to be clear from the issue)lang-javaRelated to Java supportRelated to Java supportpackage:jnipackage:jnigen
Type
Projects
Status
Backlog