Accessing the current tokio runtime to call block_on

It looks like you probably want tokio::runtime::Handle::try_current(). There may be a better way to accomplish your overall goal, but I’ll have to defer to others more familiar with tokio than I am.