1
0
dust/examples/async_download.ds

21 lines
470 B
Plaintext
Raw Permalink Normal View History

2024-01-30 04:57:13 +00:00
cast_len = 0
characters_len = 0
episodes_len = 0
2023-11-04 10:02:27 +00:00
2023-12-02 07:34:23 +00:00
async {
2024-01-30 04:57:13 +00:00
{
cast = download("https://api.sampleapis.com/futurama/cast")
cast_len = length(from_json(cast))
}
{
characters = download("https://api.sampleapis.com/futurama/characters")
characters_len = length(from_json(characters))
}
{
episodes = download("https://api.sampleapis.com/futurama/episodes")
episodes_len = length(from_json(episodes))
}
2023-12-02 07:34:23 +00:00
}
2023-11-04 10:02:27 +00:00
2023-12-30 02:15:03 +00:00
output ([cast_len, characters_len, episodes_len])