Hi,

let's say I have two threads. One thread is for vibe processing with fibers and such, the other is an ordinary thread doing its work. I want to send (via std.concurrency.send) message from one fiber in thread 1 to thread 2 and wait with the fiber, until the thread 2 finishes the computation and returns the result.

I know how to do all steps except for effective waiting in fiber in thread 1. I have looked at async and Future, but I am not sure if this is what I need. I would generally want a condition variable that I could notify when thread 1 receives result in its message box and then retrieve it with the awakened fiber.

Is it possible to do it with vibe? Or am I just trying to abuse fibers for thread-like actions?

Thanks,
Drasha