cancellation
How cancel the execution of a SwingWorker?
Curren开发者_StackOverflow社区tly I have two SwingWorker threads doing job on background. If an exception occurs, the method stop to work, but the thread still runnig.[详细]
2023-03-08 06:23 分类:问答What will common web servers do when user canceled a request?
For a not-so-short-period request, and the user canceled the connection (i.e., he/she closed the browser before the request is completed), what will happen in server-side then?[详细]
2023-03-04 01:50 分类:问答A pattern for pausing threads similar to the CancellationTokenSource and CancellationToken pattern?
I started using the cooperative thread cancellation pattern provided in framework 4.0 by ConcellationTokenSource and CancellationToken and I found it very useful and simple.[详细]
2023-02-27 18:40 分类:问答Implementing cancellable syscalls in userspace
I\'m working on implementing pthread cancellation on Linux without any of the \"unpleasant behavior\" (some might say bugs) discussed in some of my other recent questions. The Linux/glibc approach to[详细]
2023-02-25 18:06 分类:问答Is there a way to make process-internal-only conditionally-interrupting signals?
I\'m looking for a way to, from within a signal handler, conditionally interrupt a syscall that way taking place at the time the signal was handled. To make this concrete, suppose a call to read is in[详细]
2023-02-18 02:43 分类:问答CancellationTokenSource.Cancel(false)
static void Main(string[] args) { CancellationTokenSource cts = new CancellationTokenSource(); ThreadPool.QueueUserWorkItem(o => DoWork(cts.Token, 100));[详细]
2023-02-16 13:49 分类:问答Deny access to a persistent cookie
If someone logs in on a pc from Starbucks (for example开发者_JAVA百科) and they accidentally check the \'remember me\' option thereby setting a persistent cookie on that pc, is there any way of denyin[详细]
2023-02-15 16:41 分类:问答How to correctly clean up after long running task is cancelled
I\'ve created a class whose purpose is to abstract away the control of concurrent access to a queue. The class is designed to be instantiated on a single thread, written to by multiple threads and th[详细]
2023-02-15 13:41 分类:问答Catch a cancelled stored procedure in SQL Server
I have a stored procedure in SQL server that looks something like this: insert into Record(StartTimestamp) values (GETDATE())[详细]
2023-02-11 00:15 分类:问答Aborting a long running task in TPL
Our application uses the TPL to serialize (potentially) long running units of work.The creation of work (tasks) is user-driven and may be cancelled at any time.In order to have a responsive user inter[详细]
2023-02-05 08:44 分类:问答