1
0
dust/examples/async.ds

20 lines
331 B
Plaintext
Raw Permalink Normal View History

2023-11-04 03:42:10 +00:00
(output "This will print first.")
create_random_numbers = |count| => {
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.")