Is the following snippet a bug?

---
import core.thread;
import std.stdio, std.concurrency;

void foo(Tid tid) {
    send(tid, true);
}

void main() {
    auto fooTid = spawn(&foo, thisTid);
auto receiveInt = receiveTimeout(dur!"seconds"(10), (int isInt) {
        writeln("I should not be here");
    });
}
// output: "I should not be here"
---

If not, is there some way I could achieve "receiveOnlyTimeout!(int)(dur, fun);" ?

Thanks,
Josh

Reply via email to