1
0
dust/examples/async.ds
2023-11-27 17:53:12 -05:00

20 lines
334 B
Plaintext

(output "This will print first.")
create_random_numbers = |count <int>| {
numbers = [];
while (length numbers) < count {
numbers += (random_integer)
}
(output "Made " + count + " numbers.")
}
async {
(create_random_numbers 1000)
(create_random_numbers 100)
(create_random_numbers 10)
}
(output "This will print last.")