2021-06-30から1日間の記事一覧

tokio::runtime::Handle でスレッドを跨ぐ

tokio::runtime::Handle を最近まで知らなくて無駄なコードを書いてたのでメモ。 Handle とは意味的には Runtime への参照になっている。 https://docs.rs/tokio/1.7.1/tokio/runtime/struct.Handle.html Handle のドキュメントにもあるように、これを使うと…