actix-webのVecが勝手に消えちゃう謎再現コードをシェアしておきます https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=0c653a66adbfb84ab3aff129f898e498 … rust-jpのSlackでも質問しました
返信遅くなりました コード見た限りだと、Mutex::lockを呼び出すタイミングがFutureを作るときのみに呼び出されていて、Future::pollを評価する時点ではロックを取得すらしていないのではと思われます。
-
-
あー原因わかりました. これなら期待通りに動くと思いますがどうですか? https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=9d1e7fad6ccd81e288537cbcd2ecd8df …
- 1 more reply
New conversation
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.