Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testInterrupt (0.17 sec)

  1. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

              }
            };
    
        e.execute(runMe);
        e.execute(runMe);
        fakePool.runAll();
    
        assertEquals(2, numCalls.get());
      }
    
      public void testInterrupt_beforeRunRestoresInterruption() throws Exception {
        // Run a task on the composed Executor that interrupts its thread (i.e. this thread).
        fakePool.execute(
            new Runnable() {
              @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

              }
            };
    
        e.execute(runMe);
        e.execute(runMe);
        fakePool.runAll();
    
        assertEquals(2, numCalls.get());
      }
    
      public void testInterrupt_beforeRunRestoresInterruption() throws Exception {
        // Run a task on the composed Executor that interrupts its thread (i.e. this thread).
        fakePool.execute(
            new Runnable() {
              @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/ConcurrencyTest.java

                    }
                }
                catch ( Exception e ) {
                    log.error("Test case failed", e);
                }
            }
    
        }
    
    
        @Test
        public void testInterrupt () throws UnknownHostException, IOException, InterruptedException {
    
            final Object lock = new Object();
            final Thread t = Thread.currentThread();
    
            this.executor.submit(new Runnable() {
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:40:50 GMT 2021
    - 17.6K bytes
    - Viewed (0)
Back to top