cancellation
How do I cancel an edit in the Silverlight DataGrid when a validation error has occurred?
I have DataGrid and during a cell edit, a validation error occurs (my binding throws an exception and the error is correctly displayed to the user). The user then chooses to just click somewhere (eith[详细]
2023-04-09 00:39 分类:问答How to implement asynchronous interdependent cancellable operations with actors?
开发者_如何学CI am quite new to the Actor model, that\'s why I think there are already established patterns addressing my common-looking scenario with such beautiful composable abstractions as actors[详细]
2023-03-31 18:47 分类:问答nested Parallel.For Loop - Cancellation.Token doesn't work
I have the following problem: I have a tight loop (on purpose) which starts on a click event in the MainWindow.cs of my WPF application.[详细]
2023-03-30 16:24 分类:问答C# async CTP - How do I mark an async task as canceled without throwing a TaskCanceledException?
I have a short async task that will frequently need to be canceled after it has started. The \"Task\" class has an IsCanceled indicator which I think would be convenient to use to indicate that the as[详细]
2023-03-27 06:00 分类:问答How to cancel an observable sequence
I have a very simple IObservable<int> that acts as a pulse generator every 500ms: var pulses = Observable.GenerateWithTime(0, i => true, i => i + 1, i => i,[详细]
2023-03-21 09:12 分类:问答What would be a good way to Cancel long running IO/Network operation using Tasks?
I\'ve been studying Tasks in .net 4.0 and their cancellation. I like the fact that TPL tries to deal with cancellation correctly in cooperative manner.[详细]
2023-03-20 18:00 分类:问答Proper way to use LINQ with CancellationToken
I am trying to write a LINQ query that would support cancellation using the CancellationToken mechanism that is provided in the .NET framework. However, it\'s unclear what the proper way to combine ca[详细]
2023-03-20 15:52 分类:问答Change pthread cancel type of another thread?
What I want to accomplish is that a main thread tries a normal deferred cancel first on a worker thread (executing code that is for my purposes a black box), and then if the thread is 开发者_Python百科[详细]
2023-03-18 10:36 分类:问答Task Cancellation with multiple sources
I currently have an application where I create a series of Tasks that execute one after the other, with a cancellation source that can interrupt execution between Tasks (i.e. at safe termination point[详细]
2023-03-11 06:06 分类:问答SwingWorker: when exactly is called done method?
Javadoc of the done() method of SwingWorker: Executed on the Event Dispatch Thread after the doInBackground method[详细]
2023-03-09 16:02 分类:问答