1
0
dust/examples/async.ds

20 lines
343 B
Plaintext

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