Is this a bug in the concurrency lib or am i using it incorrectly?

David d at dav1d.de
Mon Jul 1 11:38:20 PDT 2013


>     try
>     {
>         while (true)
>         {
>             receive((string s){
>                 writefln(s);
>             });
>         }
>     }
>     catch (OwnerTerminated ex)
>     {
>         // die.
>     }

If you remove the the try..catch you will notice that OwnerTerminated is
thrown, if this is the intended behaviour, I don't know. Probably is,
because this would be a pretty obvious bug.


More information about the Digitalmars-d-learn mailing list