module pind.samples.ja.concurrency.concurrency_4; import std.concurrency; void workerFunc() { ownerTid.send("hello"); // ← 文字列を送信 } void main() { spawn(&workerFunc); auto message = receiveOnly!double(); // ← doubleを期待 }