Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 399 for clocked (0.07 sec)

  1. guava/src/com/google/common/io/ByteArrayDataInput.java

     * array. If any method encounters the end of the array prematurely, it throws {@link
     * IllegalStateException} to signify <i>programmer error</i>. This behavior is a technical violation
     * of the supertype's contract, which specifies a checked exception.
     *
     * @author Kevin Bourrillion
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public interface ByteArrayDataInput extends DataInput {
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

                throw new RejectedExecutionException();
              }
            };
        final SequentialExecutor executor = new SequentialExecutor(delegate);
        final ExecutorService blocked = Executors.newCachedThreadPool();
        Future<?> first =
            blocked.submit(
                new Runnable() {
                  @Override
                  public void run() {
                    executor.execute(Runnables.doNothing());
                  }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java

      }
    
      @Override
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      public void runWithTimeout(Runnable runnable, long timeoutDuration, TimeUnit timeoutUnit) {
        checkNotNull(runnable);
        checkNotNull(timeoutUnit);
        try {
          runnable.run();
        } catch (Exception e) { // sneaky checked exception
          throw new UncheckedExecutionException(e);
        } catch (Error e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/TestWriter.java

        flush();
      }
    
      @Override
      public void write(String str, int off, int len) throws IOException {
        super.write(str, off, len);
        flush();
      }
    
      public boolean closed() {
        return out.closed();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/io/CloseableUtilTest.java

         */
        @Test
        public void testClose() throws Exception {
            final NotifyOutputStream out = new NotifyOutputStream();
            CloseableUtil.close(out);
            assertThat(out.getNotify(), is("closed"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testCloseNull() throws Exception {
            CloseableUtil.close((OutputStream) null);
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java

        return getSubMultiset(0, elementSet.headIndex(upperBound, checkNotNull(boundType) == CLOSED));
      }
    
      @Override
      public ImmutableSortedMultiset<E> tailMultiset(E lowerBound, BoundType boundType) {
        return getSubMultiset(
            elementSet.tailIndex(lowerBound, checkNotNull(boundType) == CLOSED), length);
      }
    
      ImmutableSortedMultiset<E> getSubMultiset(int from, int to) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. .github/DISCUSSION_TEMPLATE/questions.yml

              required: true
            - label: I already checked if it is not related to FastAPI but to [Pydantic](https://github.com/pydantic/pydantic).
              required: true
            - label: I already checked if it is not related to FastAPI but to [Swagger UI](https://github.com/swagger-api/swagger-ui).
              required: true
            - label: I already checked if it is not related to FastAPI but to [ReDoc](https://github.com/Redocly/redoc).
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 03 15:59:41 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/CloserTest.java

        private TestCloseable(@Nullable Throwable throwOnClose) {
          this.throwOnClose = throwOnClose;
        }
    
        public boolean isClosed() {
          return closed;
        }
    
        @Override
        public void close() throws IOException {
          closed = true;
          if (throwOnClose != null) {
            throwIfInstanceOf(throwOnClose, IOException.class);
            throwIfUnchecked(throwOnClose);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. cmd/metacache-set.go

    	readers := make([]*metacacheReader, len(disks))
    	defer func() {
    		for _, r := range readers {
    			r.Close()
    		}
    	}()
    	for i := range disks {
    		r, w := io.Pipe()
    		// Make sure we close the pipe so blocked writes doesn't stay around.
    		defer r.CloseWithError(context.Canceled)
    
    		readers[i] = newMetacacheReader(r)
    		d := disks[i]
    
    		// Send request to each disk.
    		go func() {
    			var werr error
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java

                .log(
                    SEVERE,
                    String.format(Locale.ROOT, "Caught an exception in %s.  Shutting down.", t),
                    e);
          } catch (Throwable errorInLogging) { // sneaky checked exception
            // If logging fails, e.g. due to missing memory, at least try to log the
            // message and the cause for the failed logging.
            System.err.println(e.getMessage());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top