Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,174 for returnedAt (0.32 sec)

  1. src/database/sql/sql.go

    	// guarded by db.mu
    	inUse      bool
    	dbmuClosed bool      // same as closed, but guarded by db.mu, for removeClosedStmtLocked
    	returnedAt time.Time // Time the connection was created or returned.
    	onPut      []func()  // code (with db.mu held) run when conn is next returned
    }
    
    func (dc *driverConn) releaseConn(err error) {
    	dc.db.putConn(dc, err, true)
    }
    
    func (dc *driverConn) removeOpenStmt(ds *driverStmt) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  2. src/database/sql/sql_test.go

    			}
    
    			// Validate freeConn order.
    			var last time.Time
    			for _, c := range db.freeConn {
    				if last.After(c.returnedAt) {
    					t.Error("freeConn is not ordered by returnedAt")
    					break
    				}
    				last = c.returnedAt
    			}
    
    			db.mu.Unlock()
    			for _, c := range closing {
    				c.Close()
    			}
    			if g, w := int64(len(closing)), item.wantIdleClosed; g != w {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  3. cmd/typed-errors.go

    // errInvalidRange - returned when given range value is not valid.
    var errInvalidRange = errors.New("Invalid range")
    
    // errInvalidRangeSource - returned when given range value exceeds
    // the source object size.
    var errInvalidRangeSource = errors.New("Range specified exceeds source object size")
    
    // error returned by disks which are to be initialized are waiting for the
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 28 17:14:16 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. src/sync/oncefunc.go

    	}
    	return func() {
    		once.Do(g)
    		if !valid {
    			panic(p)
    		}
    	}
    }
    
    // OnceValue returns a function that invokes f only once and returns the value
    // returned by f. The returned function may be called concurrently.
    //
    // If f panics, the returned function will panic with the same value on every call.
    func OnceValue[T any](f func() T) func() T {
    	var (
    		once   Once
    		valid  bool
    		p      any
    		result T
    	)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:31:33 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInstrumentationInJavaIntegrationTest.groovy

                import ${Project.name};
    
                public class SomePlugin implements Plugin<Project> {
                    public void apply(Project project) {
                        Object returned = $method;
                        System.out.println("returned = " + returned);
                    }
                }
            """
    
            buildScript("""
                apply plugin: SomePlugin
            """)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInstrumentationInStaticGroovyIntegrationTest.groovy

                @CompileStatic
                class SomePlugin implements Plugin<Project> {
                    void apply(Project project) {
                        def returned = $method
                        println("returned = \$returned")
                    }
                }
            """
    
            buildScript("""
                apply plugin: SomePlugin
            """)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. internal/kms/errors.go

    import (
    	"fmt"
    	"net/http"
    )
    
    var (
    	// ErrPermission is an error returned by the KMS when it has not
    	// enough permissions to perform the operation.
    	ErrPermission = Error{
    		Code:    http.StatusForbidden,
    		APICode: "kms:NotAuthorized",
    		Err:     "insufficient permissions to perform KMS operation",
    	}
    
    	// ErrKeyExists is an error returned by the KMS when trying to
    	// create a key that already exists.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/internal/poll/fd.go

    func (e errNetClosing) Temporary() bool { return false }
    
    // ErrNetClosing is returned when a network descriptor is used after
    // it has been closed.
    var ErrNetClosing = errNetClosing{}
    
    // ErrFileClosing is returned when a file descriptor is used after it
    // has been closed.
    var ErrFileClosing = errors.New("use of closed file")
    
    // ErrNoDeadline is returned when a request is made to set a deadline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:16:28 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInstrumentationInDynamicGroovyIntegrationTest.groovy

                import static ${System.name}.setProperty
    
                class SomePlugin implements Plugin<Project> {
                    void apply(Project project) {
                        def returned = $method
                        println("returned = \$returned")
                    }
                }
            """
            file("buildSrc/build.gradle") << """
                compileGroovy {
                    groovyOptions.optimizationOptions.indy = $enableIndy
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/promise/promise_test.go

    	goGetExpectNotYet(t, wr, gots, "Set")
    	now := time.Now()
    	aval := &now
    	if !wr.Set(aval) {
    		t.Error("Set() returned false")
    	}
    	expectGotValue(t, gots, aval)
    	goGetAndExpect(t, wr, gots, aval)
    	later := time.Now()
    	bval := &later
    	if wr.Set(bval) {
    		t.Error("second Set() returned true")
    	}
    	goGetAndExpect(t, wr, gots, aval)
    	cancel()
    	time.Sleep(time.Second) // give it a chance to misbehave
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 19:19:31 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top