tag:blogger.com,1999:blog-2993762679677061763.post5761359566451669174..comments2024-03-14T21:02:28.051+01:00Comments on Martin's corner: Poznámky z code review - čekací smyčkymstrhttp://www.blogger.com/profile/17914336682364152828noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-2993762679677061763.post-17121791144084673922023-09-21T05:52:06.054+02:002023-09-21T05:52:06.054+02:00edremit
ardahan
kırıkkale
kırşehir
tunceli
KJPF8<a href="https://edremit.escorthun.com/" title="edremit" rel="nofollow">edremit</a><br /><a href="https://ardahan.escorthun.com/" title="ardahan" rel="nofollow">ardahan</a><br /><a href="https://kirikkale.escorthun.com/" title="kırıkkale" rel="nofollow">kırıkkale</a><br /><a href="https://kirsehir.escorthun.com/" title="kırşehir" rel="nofollow">kırşehir</a><br /><a href="https://tunceli.escorthun.com/" title="tunceli" rel="nofollow">tunceli</a><br />KJPF8yiğitnoreply@blogger.comtag:blogger.com,1999:blog-2993762679677061763.post-10058294057072108752016-08-01T14:19:48.321+02:002016-08-01T14:19:48.321+02:00s tim Dispose mas pravdu, diky. S Task.Delay to my...s tim Dispose mas pravdu, diky. S Task.Delay to myslis nejak takto:<br /><br />Task.Run(<br /> async () =><br /> {<br /> while (true)<br /> {<br /> await Task.Delay(3000, cancellationToken);<br /> action();<br /> }<br /> },cancellationToken)<br />.ContinueWith(t => { Console.WriteLine("Wake up"); },TaskContinuationOptions.OnlyOnCanceled)<br />.ConfigureAwait(false);mstrhttps://www.blogger.com/profile/17914336682364152828noreply@blogger.comtag:blogger.com,1999:blog-2993762679677061763.post-71853382531541414582016-08-01T10:36:43.687+02:002016-08-01T10:36:43.687+02:00Kdyz uz jsi sahnul na WaitHandle, bylo by dobre Ca...Kdyz uz jsi sahnul na WaitHandle, bylo by dobre CancellationTokenSource disposnout (nebo to delat obecne vzdycky). A misto WaitHandle.WaitOne, bych to cele prepsal na Task.Delay(3000) a smycku a je to pak na par radku.Jiri Cincurahttp://blog.cincura.netnoreply@blogger.com