pub fn send_message_on<A, M, F>(ctx: Context<A>, f: F, msg: M) -> JoinHandle<()>Expand description
Send a message to an actor when a blocking closure completes.
Spawns a thread that runs f(), then sends msg to the actor.
If the actor stops before f() returns, the message is not sent.