On Saturday, 27 June 2020 at 07:51:21 UTC, adnan338 wrote:
On Saturday, 27 June 2020 at 07:31:56 UTC, Kagamin wrote:
std.concurrency is for noninteractive appications, the
approach with gui timer was the correct one.
Thank you. That works but my progress bar is sometimes getting
stuck because of a possible data race.
See
https://forum.dlang.org/post/gacweulvbyorkseti...@forum.dlang.org
Sometimes? In that code you write the progress variable only
once, so it doesn't change after that. Nothing else can possibly
happen there with or without multithreading.