Open Superhepper opened 3 years ago
hi @Superhepper It is a limitation that the ThreadPool used internally by ricker , which belongs to the crate futures::executor
So it would be possible if I could bring the future to completion using another thread pool like tokio?
So it would be possible if I could bring the future to completion using another thread pool like tokio?
yes, you can use tokio or async_std::task::block_on instead of futures::executor::block_on
Thanks for the answer.
I wonder if it is possible to use the ask pattern from inside recv function in actor to make a blocking call to another actor in the same system. Because when I try to do that I always get an error regarding LocalPool.
I have made a very simple example (see code below) where I try to use the ask-pattern from inside another actors recv function. But this only results in the following error:
main.rs
ask.rs
reply.rs