yabs.io

Yet Another Bookmarks Service

Search

Results

[https://www.darttutorial.org/dart-tutorial/dart-future/] - - public:mzimmerm
async, dart, future, good - 4 | id:1485371 -

a) add the async keyword to the main() function. b) add the await keyword in front of the future object. Result: Once Dart encounters the await keyword, it sends all the code starting from that line to the event queue and waits for the future to complete. That’s why you see the number 2 before 3.

Follow Tags


Export:

JSONXMLRSS