Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 114 for closeFn (0.1 sec)

  1. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/api/DaemonConnection.java

         * <ul>
         * <li>A {@link org.gradle.launcher.daemon.protocol.CloseInput} event received from the client.</li>
         * <li>When the client connection disconnects unexpectedly.</li>
         * <li>When the connection is closed using {@link #stop()}.</li>
         * </ul>
         *
         * Note: the end of input may be signalled from another thread before this method returns.
         *
         * @param handler the handler. Use null to remove the current handler.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. pilot/pkg/bootstrap/options.go

    	// a port number is automatically chosen.
    	HTTPAddr string
    
    	// The listening address for HTTPS (webhooks). If the port in the address is empty or "0" (as in "127.0.0.1:" or "[::1]:0")
    	// a port number is automatically chosen.
    	// If the address is empty, the secure port is disabled, and the
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. src/internal/trace/testdata/testprog/stress-start-stop.go

    		wg.Add(1)
    		go func() {
    			<-done
    			wg.Done()
    		}()
    
    		rp, wp, err := os.Pipe()
    		if err != nil {
    			log.Fatalf("failed to create pipe: %v", err)
    			return
    		}
    		defer func() {
    			rp.Close()
    			wp.Close()
    		}()
    		wg.Add(1)
    		go func() {
    			var tmp [1]byte
    			rp.Read(tmp[:])
    			<-done
    			wg.Done()
    		}()
    		time.Sleep(time.Millisecond)
    
    		go func() {
    			runtime.LockOSThread()
    			for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtSubtypingComponent.kt

         *  3. It is consistent with most of the behavior of the Kotlin compiler.
         */
        STRICT,
    
        /**
         * Error types are equal to and subtypes of all types.
         *
         * [LENIENT] should be chosen if type errors are expected and should be treated as type holes that can be satisfied by any other type.
         * However, caution should be applied when using [LENIENT], as the policy can swallow type errors which should have been dealt with
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskExecutionIntegrationTest.groovy

                    }
                }
            """
    
            then:
            createdTasksFor("t1") == [":t1"]
        }
    
        @UnsupportedWithConfigurationCache
        def "task container is self closed by task selection and can be later graph closed"() {
            when:
            buildFile << '''
                import org.gradle.model.internal.core.*
    
                model {
                    tasks {
                        create("t1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. internal/ioutil/ioutil_test.go

    	if err != context.DeadlineExceeded {
    		t.Error("DeadlineWriter shouldn't be successful - should return context.DeadlineExceeded")
    	}
    	w.Close()
    	w = NewDeadlineWriter(&sleepWriter{timeout: 100 * time.Millisecond}, 600*time.Millisecond)
    	n, err := w.Write([]byte("abcd"))
    	w.Close()
    	if err != nil {
    		t.Errorf("DeadlineWriter should succeed but failed with %s", err)
    	}
    	if n != 4 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. internal/event/target/nats_contrib_test.go

    			Port:      (xnet.Port(opts.Port)),
    			IsPortSet: true,
    		},
    		Subject: "test",
    	}
    	con, err := clientConfig.connectNats()
    	if err != nil {
    		t.Errorf("Could not connect to nats: %v", err)
    	}
    	defer con.Close()
    }
    
    func TestNatsConnUserPass(t *testing.T) {
    	opts := natsserver.DefaultTestOptions
    	opts.Port = 14223
    	opts.Username = "testminio"
    	opts.Password = "miniotest"
    	s := natsserver.RunServer(&opts)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheFactory.java

                        close();
                    }
                } finally {
                    lock.unlock();
                }
            }
    
            @Override
            public void close() {
                onClose(cache);
                dirCaches.values().remove(this);
                references.clear();
                cache.close();
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 15:54:23 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. src/cmd/trace/testdata/testprog/main.go

    		log.Fatalf("listen failed: %v", err)
    	}
    	defer ln.Close()
    	go func() {
    		c, err := ln.Accept()
    		if err != nil {
    			return
    		}
    		time.Sleep(time.Millisecond)
    		var buf [1]byte
    		c.Write(buf[:])
    		c.Close()
    	}()
    	c, err := net.Dial("tcp", ln.Addr().String())
    	if err != nil {
    		log.Fatalf("dial failed: %v", err)
    	}
    	var tmp [1]byte
    	c.Read(tmp[:])
    	c.Close()
    
    	trace.Stop()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 17:15:58 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ScopedFingerprintWriter.kt

        private val writeContext: DefaultWriteContext
    ) : Closeable {
        override fun close() {
            // we synchronize access to all resources used by callbacks
            // in case there was still an event being dispatched at closing time.
            synchronized(writeContext) {
                unsafeWrite(null)
                writeContext.close()
            }
        }
    
        fun write(value: T, trace: PropertyTrace? = null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top