DescriptionUse FutureOr more and make Future.sync return the resulting Future directly.
When the computation passed to Future.sync returns a Future of the correct type,
then it's returned directly instead of wrapping it again.
(Until strong mode, we have an extra case for when it returns a Future of an
incorrect type, but that will eventually be removed).
This should improve the performance of Future.sync a bit.
Also adds missing Zone intercept for when the Future.sync computation throws.
Updates documentation for Future.doWhile.
Fixes #29202
BUG= http://dartbug.com/29202
R=floitsch@google.com
Committed: https://github.com/dart-lang/sdk/commit/d509ddb3fa9d2fb62dd2ef94010cd5dadbbd966b
Patch Set 1 #Patch Set 2 : State that doWhile completes with null. #
Messages
Total messages: 5 (2 generated)
|