Category "future"

Java CompletableFuture allOf approach

I am trying to run 3 operations in parallel using the CompletableFuture approach. Now these 3 operations return different types so need to retrieve the data sep

Vertx v4.2.5 returns null instead of future from someFuture.onSuccess()

I'm trying to work through with vertx 4.2.5 promises and futures, but I keep getting tripped up on odd things I have a very simple groovy script like this, wher

Flutter - FutureBuilder in SearchDelegate with Delay Request

I was struggling implement simple search function using SearchDelegate. I want to wait 2 second after user stop typing and then make a call request to an API. I

Flutter Error when creating SQL DB table by giving tableName parameter

I found a flutter sqfl example on the web and trying to modify it for my personal project. I need more than one table in a database, so I want to be able to cre

Flutter: convert future to stream

I am getting data as Future from my json API. And use my Flutter Mobile app. Here is my code for getting data from API- import 'dart:async'; import 'dart:conver

Flutter - FutureBuilder fires twice on hot reload

In my flutter project when I start the project in the simulator everything works fine and the future builder only fires once, but when I do hot reload the Futur

Flutter future builder to list

I have some troubles in understanding how future builder works in flutter. I want to pass a list of String from my future call and I want to display them in a S

When should I use a FutureBuilder?

I was wondering when I should use the future builder. For example, if I want to make an http request and show the results in a list view, as soon as you open th

Fetch data from firestore inside a stream map

Is it possible to let a stream await during a fetch from firestore? I want to achieve that a user also fetches his own roles from the firestore database. Of cou

Flutter Location packages does not return current location on iOS

I'm stuck with this problem, If I try to call: Location location = Location(); LocationData data = await location.getLocation(); The future does never return a

Dart: How to return Future<void>

How can I return Future<void> ? Future<void> deleteAll(List stuff){ stuff.forEach( s => delete(s)); //How do I return Future<void