Vibe.d download function, how to get callback when done or error?
Imperatorn
johan_forsberg_86 at hotmail.com
Sun Sep 24 07:20:43 UTC 2023
On Saturday, 23 September 2023 at 12:07:38 UTC, Joe wrote:
> I'm using download(url, filename) to download files in vibe.d.
>
> The issue is that I do not know when the download is finished
> or errors. There is a callback for the streaming side but not
> for the file download.
If you want an asynchronous download just create a task or use
spawn. Apparently there's also this in vibe:
https://vibed.org/api/vibe.core.concurrency/async
More information about the Digitalmars-d-learn
mailing list