Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 285 for returning (0.09 sec)

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

     * might be absent" as two distinct types in your program, which can aid clarity.
     *
     * <p>Some uses of this class include
     *
     * <ul>
     *   <li>As a method return type, as an alternative to returning {@code null} to indicate that no
     *       value was available
     *   <li>To distinguish between "unknown" (for example, not present in a map) and "known to have no
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. src/bufio/scan.go

    				return false
    			}
    			if !s.advance(advance) {
    				return false
    			}
    			s.token = token
    			if token != nil {
    				if s.err == nil || advance > 0 {
    					s.empties = 0
    				} else {
    					// Returning tokens not advancing input at EOF.
    					s.empties++
    					if s.empties > maxConsecutiveEmptyReads {
    						panic("bufio.Scan: too many empty tokens without progressing")
    					}
    				}
    				return true
    			}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 23 09:06:30 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  3. src/builtin/builtin.go

    // the last sent value is received. After the last value has been received
    // from a closed channel c, any receive from c will succeed without
    // blocking, returning the zero value for the channel element. The form
    //
    //	x, ok := <-c
    //
    // will also set ok to false for a closed and empty channel.
    func close(c chan<- Type)
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. internal/ringbuffer/ring_buffer.go

    	r.r = 0
    	r.w = 0
    	r.err = nil
    	r.isFull = false
    }
    
    // WriteCloser returns a WriteCloser that writes to the ring buffer.
    // When the returned WriteCloser is closed, it will wait for all data to be read before returning.
    func (r *RingBuffer) WriteCloser() io.WriteCloser {
    	return &writeCloser{RingBuffer: r}
    }
    
    type writeCloser struct {
    	*RingBuffer
    }
    
    // Close provides a close method for the WriteCloser.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/CharSource.java

        } catch (UncheckedIOException e) {
          throw e.getCause();
        }
      }
    
      /**
       * Returns whether the source has zero chars. The default implementation first checks {@link
       * #lengthIfKnown}, returning true if it's known to be zero and false if it's known to be
       * non-zero. If the length is not known, it falls back to opening a stream and checking for EOF.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Ordering.java

        return new CompoundOrdering<>(this, checkNotNull(secondaryComparator));
      }
    
      /**
       * Returns an ordering which tries each given comparator in order until a non-zero result is
       * found, returning that result, and returning zero only if all comparators return zero. The
       * returned ordering is based on the state of the {@code comparators} iterable at the time it was
       * provided to this method.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  7. tensorflow/c/c_test_util.cc

                          &FloatDeallocator, nullptr);
    }
    
    // All the *Helper methods are used as a workaround for the restrictions that
    // one cannot call ASSERT_* methods in non-void-returning functions (when
    // exceptions are disabled during compilation)
    void PlaceholderHelper(TF_Graph* graph, TF_Status* s, const char* name,
                           TF_DataType dtype, const std::vector<int64_t>& dims,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Oct 15 03:16:52 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       *
       * This is typically invoked immediately before bytes are returned to the application. If the
       * response body is empty this is invoked immediately before returning that to the application.
       *
       * If the application closes the response body before attempting a read, this is invoked at the
       * time it is closed.
       *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

       * <p>It is not necessary to consider visibility, return type, or type parameter declarations. The
       * declaration of a method with the same name and formal parameters as {@link Object#equals} that
       * is not public and boolean-returning, or that declares any type parameters, would be rejected at
       * compile-time.
       */
      private static boolean isEquals(Member member) {
        if (!(member instanceof Method)) {
          return false;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  10. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

                if (RELEASE_QUALIFIERS.contains(qualifier)) {
                    return String.valueOf(QUALIFIERS.indexOf(""));
                }
    
                int i = QUALIFIERS.indexOf(qualifier);
    
                // Just returning an Integer with the index here is faster, but requires a lot of if/then/else to check for
                // -1
                //  or QUALIFIERS.size and then resort to lexical ordering. Most comparisons are decided by the first
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 26K bytes
    - Viewed (0)
Back to top