On Thursday, 6 November 2014 at 13:04:18 UTC, Marc Schütz wrote:
It's a bug: https://issues.dlang.org/show_bug.cgi?id=2043As a workaround, you can nest the call in another lambda: foreach(acc; accounts) { (Account acc) { task(() { writeln(acc.id); }).executeInNewThread(); } (acc); }
Ok that's good. thank you !