[Issue 16074] std.concurrency receive wont work

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed May 25 09:57:15 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16074

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |schveiguy at yahoo.com
         Resolution|---                         |INVALID

--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> ---
You have a module named receive. Perhaps this module?

Why does receiveTimeout work? because you didn't name your module that :)

You can work around by renaming the import:

import std.concurrency: spawn, con_recv = receive;

or use fully qualified name:

std.concurrency.receive( ...

--


More information about the Digitalmars-d-bugs mailing list