Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for WithTimeout (0.2 sec)

  1. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Implementation of {@code Futures#withTimeout}.
     *
     * <p>Future that delegates to another but will finish early (via a {@link TimeoutException} wrapped
     * in an {@link ExecutionException}) if the specified duration expires. The delegate future is
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Futures.java

      @IgnoreJRERequirement // Users will use this only if they're already using Duration.
      public static <V extends @Nullable Object> ListenableFuture<V> withTimeout(
          ListenableFuture<V> delegate, Duration time, ScheduledExecutorService scheduledExecutor) {
        return withTimeout(delegate, toNanosSaturated(time), TimeUnit.NANOSECONDS, scheduledExecutor);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/Futures.java

       */
      @J2ktIncompatible
      @GwtIncompatible // java.util.concurrent.ScheduledExecutorService
      public static <V extends @Nullable Object> ListenableFuture<V> withTimeout(
          ListenableFuture<V> delegate, Duration time, ScheduledExecutorService scheduledExecutor) {
        return withTimeout(delegate, toNanosSaturated(time), TimeUnit.NANOSECONDS, scheduledExecutor);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.4K bytes
    - Viewed (0)
  4. cmd/iam.go

    	policyDBSTSUsersPrefix := strings.HasPrefix(event.keyPath, iamConfigPolicyDBSTSUsersPrefix)
    	policyDBGroupsPrefix := strings.HasPrefix(event.keyPath, iamConfigPolicyDBGroupsPrefix)
    
    	ctx, cancel := context.WithTimeout(ctx, defaultContextTimeout)
    	defer cancel()
    
    	switch {
    	case usersPrefix:
    		accessKey := path.Dir(strings.TrimPrefix(event.keyPath, iamConfigUsersPrefix))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
Back to top