Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,895 questions

51,826 answers

573 users

How to execution of several instruction sequences at the same time in Dart

1 Answer

0 votes
import 'dart:isolate';  

void example(var s) { 
   print('example :${s}'); 
}  

void main() { 
   Isolate.spawn(example, 'Dart'); 
   Isolate.spawn(example, 'Art'); 
   Isolate.spawn(example, 'Bart'); 
   
   print('main1'); 
   print('main2'); 
   print('main3'); 
}



/*
run:

main1
main2
main3
example :Bart
example :Dart
example :Art

*/

 



answered Nov 4, 2022 by avibootz

Related questions

1 answer 122 views
1 answer 115 views
1 answer 92 views
1 answer 119 views
1 answer 192 views
192 views asked Sep 9, 2023 by avibootz
...