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.
ここに ccr の専門家がいるかどうかは不明ですが、とにかく試してみましょう。
コードに次の関数があります。
dq.EnqueueTimer(TimeSpan.FromMilliseconds(TIMEOUT), timeOutFn);
タイムアウト後に関数を呼び出します。ただし、多くの開いているソケットでこのタイマーが必要なので、パラメーター (または ID) をタイマー関数に渡したいと思います。
これどうやってやるの?
ありがとう
R
このような何かがそれを行う必要があります。
var timerPort = new Port<DateTime>(); dq.EnqueueTimer(TimeSpan.FromMilliseconds(TIMEOUT), timerPort); timerPort.Receive(ignored => MyFunc(myParam));