Data update
This commit is contained in:
parent
72eb4943cb
commit
4d5544505c
2347 changed files with 62432 additions and 16731 deletions
11
Task/Concurrent-computing/Elena/concurrent-computing.elena
Normal file
11
Task/Concurrent-computing/Elena/concurrent-computing.elena
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import system'threading;
|
||||
import extensions'threading;
|
||||
|
||||
async public program()
|
||||
{
|
||||
Task t1 := Task.run({ Console.printLineConcurrent("Enjoy") });
|
||||
Task t2 := Task.run({ Console.printLineConcurrent("Rosetta") });
|
||||
Task t3 := Task.run({ Console.printLineConcurrent("Code") });
|
||||
|
||||
:await Task.whenAllArgs(t1, t2, t3);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue