Check if the future is complete

Before "m3" you could check if "Future" is complete with "completeter.future.isComplete", it looks like this is no longer the case. Is there a replacement? or I need to save it myself then (it seems like there is also a '_isComplete' field inside _CompleterImpl, but it is not exposed

+3


source to share


1 answer


With the M3 Dart, it's best to use your own flag.

future.onComplete() {
 tweenCompleted = true;
}

      



Dart is a single threaded language, so there are no race conditions here.

+3


source







All Articles