//下面关于异步机制的代码,执行结果为 void myTask(){ print("this is my task"); } void main() { print("main start"); new Future((){ print("this is my task"); }); new Future.microtask((){ print("this is microtask"); }); print("main stop"); }
A.
main start this is microtask this is my task main stop
B.
main start main stop this is microtask this is my task
C.
main start this is my task this is microtask main stop
D.
main start main stop this is my task this is microtask