Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for do_something (0.19 sec)

  1. android/guava/src/com/google/common/base/Stopwatch.java

     * accuracy, use {@code System.nanoTime()} directly instead.
     *
     * <p>Basic usage:
     *
     * <pre>{@code
     * Stopwatch stopwatch = Stopwatch.createStarted();
     * doSomething();
     * stopwatch.stop(); // optional
     *
     * long millis = stopwatch.elapsed(MILLISECONDS);
     *
     * log.info("time: " + stopwatch); // formatted string like "12.3 ms"
     * }</pre>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Nov 15 21:38:09 GMT 2022
    - 8.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Stopwatch.java

     * accuracy, use {@code System.nanoTime()} directly instead.
     *
     * <p>Basic usage:
     *
     * <pre>{@code
     * Stopwatch stopwatch = Stopwatch.createStarted();
     * doSomething();
     * stopwatch.stop(); // optional
     *
     * Duration duration = stopwatch.elapsed();
     *
     * log.info("time: " + stopwatch); // formatted string like "12.3 ms"
     * }</pre>
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

          tester.testConstructor(constructor);
        }
      }
    
      private interface Foo<T> {
        void doSomething(T bar, Integer baz);
      }
    
      private static class StringFoo implements Foo<String> {
    
        @Override
        public void doSomething(String bar, Integer baz) {
          checkNotNull(bar);
          checkNotNull(baz);
        }
      }
    
      public void testBridgeMethodIgnored() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Throwables.java

       * client code to signal to the compiler that statements after the call are unreachable. Example
       * usage:
       *
       * <pre>
       * T doSomething() {
       *   try {
       *     return someMethodThatCouldThrowAnything();
       *   } catch (IKnowWhatToDoWithThisException e) {
       *     return handle(e);
       *   } catch (Throwable t) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Throwables.java

       * client code to signal to the compiler that statements after the call are unreachable. Example
       * usage:
       *
       * <pre>
       * T doSomething() {
       *   try {
       *     return someMethodThatCouldThrowAnything();
       *   } catch (IKnowWhatToDoWithThisException e) {
       *     return handle(e);
       *   } catch (Throwable t) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  6. docs/en/docs/release-notes.md

    If you depended on exceptions not being received by dependencies with `yield`, and receiving an exception breaks the code after `yield`, you can use a block with `try` and `finally`:
    
    ```Python
    async def do_something():
        try:
            yield something
        finally:
            some_cleanup()
    ```
    
    ...that way the `finally` block is run regardless of any exception that might happen.
    
    ### Features
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Apr 28 00:28:00 GMT 2024
    - 385.5K bytes
    - Viewed (1)
Back to top