From 69d7b4b1db216ca2854661ef74ad2dd60e8e0168 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 28 Nov 2023 11:05:54 -0500 Subject: [PATCH] Fix example --- examples/async_download.ds | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/async_download.ds b/examples/async_download.ds index 983dbf4..88e6d9a 100644 --- a/examples/async_download.ds +++ b/examples/async_download.ds @@ -1,6 +1,8 @@ -cast = (download "https://api.sampleapis.com/futurama/cast") -characters = (download "https://api.sampleapis.com/futurama/characters") -episodes = (download "https://api.sampleapis.com/futurama/episodes") +async { + cast = (download "https://api.sampleapis.com/futurama/cast") + characters = (download "https://api.sampleapis.com/futurama/characters") + episodes = (download "https://api.sampleapis.com/futurama/episodes") +} cast_len = (length (from_json cast)) characters_len = (length (from_json characters))