Closed berkus closed 9 months ago
If you try to unwrap() and run block_on(handle.unwrap()) then riker will crash with:
thread 'pool-thread-#0' panicked at 'cannot execute LocalPool executor from within another executor: EnterError', stack backtrace: thread 'pool-thread-#4' panicked at 'there is no reactor running, must be called from the context of a Tokio 1.x runtime'
Any news on this? I'm having the exact same issue
@knepe the riker project is abandoned. The original maintainer vanished without saying anything. It's probably better to migrate towards a different actor framework.
For the problem itself:
block_on
must be called from a tokio context. That means, you need to run your app as a tokio app and run block_on
from there.
Ah damn :( Thanks!
@knepe https://github.com/slawlor/ractor perhaps :)
As displayed in the example code:
This will not even build because run() returns Result and block_on() expects a non-Result argument.