Does std.net.curl: download have support for callbacks?

IGotD- nise at nise.com
Sun Jun 21 10:11:42 UTC 2020


On Thursday, 18 June 2020 at 01:15:00 UTC, dangbinghoo wrote:
>
> Don't worry, almost ALL GUI FRAMEWORK in the world IS NOT 
> THREAD SAFE, the wellknow Qt and Gtk, and even morden Android 
> and the java Swing.
>
>
> ----
> binghoo dang

You can certainly download in another thread in Qt. However, you 
are only allowed to have the widget classes in the main thread. 
Qt is a large library that also spans non-GUI functionality and 
these can often be moved to separate threads, IO for example.

In this case you could download in a separate thread, then send 
signals to the progress bar object to update it. Is it possible 
to implement a similar approach in Gtk?


More information about the Digitalmars-d-learn mailing list