Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
mio で TCP サーバーを作成し、複数のタイムアウトを登録しましたが、最後に登録されたタイムアウトのみが発生します。タイムアウトを結合するにはラッパーが必要ですか、それとも mio v0.5 で複数のタイムアウトを登録する他の方法はありますか?
ID付きのタプルを登録しました
event_loop.timeout_ms((id, ServerTimeout::T1(timeout)), duration)
うまくいかなかったので、メソッドに追加idして再度ServerTimeout::T1呼び出しました。timeout_ms
id
ServerTimeout::T1
timeout_ms
event_loop.timeout_ms(ServerTimeout::T1(id, timeout), duration)