Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,381 for promised (0.29 sec)

  1. src/syscall/forkpipe2.go

    // acquireForkLock acquires a write lock on ForkLock.
    // ForkLock is exported and we've promised that during a fork
    // we will call ForkLock.Lock, so that no other threads create
    // new fds that are not yet close-on-exec before we fork.
    // But that forces all fork calls to be serialized, which is bad.
    // But we haven't promised that serialization, and it is essentially
    // undetectable by other users of ForkLock, which is good.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 10 19:19:59 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. src/net/http/http.go

    )
    
    // PushOptions describes options for [Pusher.Push].
    type PushOptions struct {
    	// Method specifies the HTTP method for the promised request.
    	// If set, it must be "GET" or "HEAD". Empty means "GET".
    	Method string
    
    	// Header specifies additional promised request headers. This cannot
    	// include HTTP/2 pseudo header fields like ":path" and ":scheme",
    	// which will be added automatically.
    	Header Header
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. src/runtime/metrics/description_test.go

    	"testing"
    	_ "unsafe"
    )
    
    // Implemented in the runtime.
    //
    //go:linkname runtime_readMetricNames
    func runtime_readMetricNames() []string
    
    func TestNames(t *testing.T) {
    	// Note that this regexp is promised in the package docs for Description. Do not change.
    	r := regexp.MustCompile("^(?P<name>/[^:]+):(?P<unit>[^:*/]+(?:[*/][^:*/]+)*)$")
    	all := metrics.All()
    	for i, d := range all {
    		if !r.MatchString(d.Name) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 20 22:54:22 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

          if (bytesRemaining == 0L) return -1
    
          val read = super.read(sink, minOf(bytesRemaining, byteCount))
          if (read == -1L) {
            carrier.noNewExchanges() // The server didn't supply the promised content length.
            val e = ProtocolException("unexpected end of stream")
            responseBodyComplete()
            throw e
          }
    
          bytesRemaining -= read
          if (bytesRemaining == 0L) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            Iterable<?> locks2 = striped.bulkGet(objects);
            assertEquals(Lists.newArrayList(locks), Lists.newArrayList(locks2));
          }
        }
      }
    
      /** Checks idempotency, and that we observe the promised number of stripes. */
      public void testBasicInvariants() {
        for (Striped<?> striped : allImplementations()) {
          assertBasicInvariants(striped);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            Iterable<?> locks2 = striped.bulkGet(objects);
            assertEquals(Lists.newArrayList(locks), Lists.newArrayList(locks2));
          }
        }
      }
    
      /** Checks idempotency, and that we observe the promised number of stripes. */
      public void testBasicInvariants() {
        for (Striped<?> striped : allImplementations()) {
          assertBasicInvariants(striped);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/base/base.go

    			runtime.SetFinalizer(p, finalizer)
    		}
    	}
    
    	finalizer(new(T))
    }
    
    // AdjustStartingHeap modifies GOGC so that GC should not occur until the heap
    // grows to the requested size.  This is intended but not promised, though it
    // is true-mostly, depending on when the adjustment occurs and on the
    // compiler's input and behavior.  Once this size is approximately reached
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:18:34 UTC 2023
    - 8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/hooks.go

    //  4. API server access **BEFORE** your hook has completed
    //
    // Think of it like a mini-controller that is super privileged and gets to run in-process
    // If you use this feature, tag @deads2k on github who has promised to review code for anyone's PostStartHook
    // until it becomes easier to use.
    type PostStartHookFunc func(context PostStartHookContext) error
    
    // PreShutdownHookFunc is a function that can be added to the shutdown logic.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      public void testFromNullable() {
        Optional<String> optionalName = Optional.fromNullable("bob");
        assertEquals("bob", optionalName.get());
      }
    
      public void testFromNullable_null() {
        // not promised by spec, but easier to test
        assertSame(Optional.absent(), Optional.fromNullable(null));
      }
    
      public void testIsPresent_no() {
        assertFalse(Optional.absent().isPresent());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 18:32:41 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  10. internal/ioutil/ioutil.go

    			// we have written the entire stream, return right here.
    			return written, nil
    		}
    
    		if eof {
    			// We reached EOF prematurely but we did not write everything
    			// that we promised that we would write.
    			if totalSize > 0 && written != totalSize {
    				return written, io.ErrUnexpectedEOF
    			}
    			return written, nil
    		}
    	}
    }
    
    // SafeClose safely closes any channel of any type
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top