In WPF, I call This.Dispatcher.BeginInvoke (DispatcherPriority.SystemIdle, mydelegete);
Is there a way to cancel the BeginInvoke method later?
thanks
Dispatcher.BeginInvokereturns an object DispatcherOperation. If you keep a link to it, you can use its method Abortto delete the operation if it is not already running.
Dispatcher.BeginInvoke
DispatcherOperation
Abort
Source: https://habr.com/ru/post/1713715/More articles:How to RegEx Replace Named Groups - regexWhat are the disadvantages of creating business applications in silverlight, unlike html - silverlightHow to create self-maven source distribution maven? - maven-2DWR as a Javascript library for REST - javascriptHow to check and access javadoc / source for Maven artifacts - pluginsКаков самый быстрый способ получить количество строк innodb tables, в mysql 4.0? - mysqlBest open source extensible crawler used to crawl images - language-agnosticWhat is a tried and true way to count the number of rows returned by the PHP function mysql_query? - phpHow to capture the screen print key? - c #Closing popups on session expiration - javaAll Articles