Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Abandon (0.47 sec)

  1. src/crypto/internal/boring/fipstls/tls.go

    //
    // Note that this call has an effect even in programs using
    // standard crypto (that is, even when Enabled = false).
    func Force() {
    	required.Store(true)
    }
    
    // Abandon allows non-FIPS-approved settings.
    // If called from a non-test binary, it panics.
    func Abandon() {
    	// Note: Not using boring.UnreachableExceptTests because we want
    	// this test to happen even when boring.Enabled = false.
    	name := runtime_arg0()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. src/os/signal/example_unix_test.go

    import (
    	"context"
    	"fmt"
    	"log"
    	"os"
    	"os/signal"
    )
    
    var neverReady = make(chan struct{}) // never closed
    
    // This example passes a context with a signal to tell a blocking function that
    // it should abandon its work after a signal is received.
    func ExampleNotifyContext() {
    	ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt)
    	defer stop()
    
    	p, err := os.FindProcess(os.Getpid())
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 15:34:56 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. src/context/example_test.go

    	// Output:
    	// context deadline exceeded
    }
    
    // This example passes a context with a timeout to tell a blocking function that
    // it should abandon its work after the timeout elapses.
    func ExampleWithTimeout() {
    	// Pass a context with a timeout to tell a blocking function that it
    	// should abandon its work after the timeout elapses.
    	ctx, cancel := context.WithTimeout(context.Background(), shortDuration)
    	defer cancel()
    
    	select {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 20:24:28 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  4. src/hash/fnv/fnv.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package fnv implements FNV-1 and FNV-1a, non-cryptographic hash functions
    // created by Glenn Fowler, Landon Curt Noll, and Phong Vo.
    // See
    // https://en.wikipedia.org/wiki/Fowler-Noll-Vo_hash_function.
    //
    // All the hash.Hash implementations returned by this package also
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top