- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 1,957 for closeFn (0.2 sec)
-
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/BlockStore.java
public interface BlockStore { /** * Opens this store, calling the given action if the store is empty. */ void open(Runnable initAction, Factory factory); /** * Closes this store. */ void close(); /** * Discards all blocks from this store. */ void clear(); /** * Removes the given block from this store. */ void remove(BlockPayload block);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/ExclusiveCacheAccessingWorker.java
} @Override public void enqueue(Runnable task) { addToQueue(task); } private void addToQueue(Runnable task) { if (closed) { throw new IllegalStateException("The worker has already been closed. Cannot add more work to queue."); } try { workQueue.put(task); } catch (InterruptedException e) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 8.8K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_termination_order.go
channel := make(chan struct{}) to.terminated[c.Name] = channel mainContainerChannels = append(mainContainerChannels, channel) // if its not a running container, pre-close the channel so nothing waits on it if _, isRunning := runningContainers[c.Name]; !isRunning { close(channel) } } var previousSidecarName string for i := range pod.Spec.InitContainers { // get the init containers in reverse order
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 18 00:07:21 UTC 2023 - 3.8K bytes - Viewed (0) -
test/stress/runstress.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:21:35 UTC 2024 - 3.6K bytes - Viewed (0) -
tests/test_datastructures.py
assert response.status_code == 200, response.text assert response.json() == {"filename": "test.txt"} assert testing_file_store assert testing_file_store[0].file.closed # For UploadFile coverage, segments copied from Starlette tests @pytest.mark.anyio async def test_upload_file(): stream = io.BytesIO(b"data") file = UploadFile(filename="file", file=stream, size=4)
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Oct 18 12:36:40 UTC 2023 - 2K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/locklistener/DefaultFileLockContentionHandlerTest.groovy
} def "can receive request for lock that is already closed"() { when: int port = handler.reservePort() handler.start(10, { assert false }) sleep(300) //so that it starts receiving //close the lock handler.stop(10) //receive request for lock that is already closed client.maybePingOwner(port, 10, "lock 1", 50000, null)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:49 UTC 2024 - 6.1K bytes - Viewed (0) -
pkg/test/framework/components/zipkin/kube.go
} defer resp.Body.Close() body, err := io.ReadAll(resp.Body) if err != nil { return nil, err } traces, err := extractTraces(body) if err != nil { return nil, err } return traces, nil } // Close implements io.Closer. func (c *kubeComponent) Close() error { if c.forwarder != nil { c.forwarder.Close() } return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 14 19:29:38 UTC 2023 - 8K bytes - Viewed (0) -
src/crypto/tls/conn.go
} return n, nil } // Close closes the connection. func (c *Conn) Close() error { // Interlock with Conn.Write above. var x int32 for { x = c.activeCall.Load() if x&1 != 0 { return net.ErrClosed } if c.activeCall.CompareAndSwap(x, x|1) { break } } if x != 0 { // io.Writer and io.Closer should not be used concurrently.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 51.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/SortedMultisets.java
return multiset().subMultiset(fromElement, CLOSED, toElement, OPEN).elementSet(); } @Override public SortedSet<E> headSet(@ParametricNullness E toElement) { return multiset().headMultiset(toElement, OPEN).elementSet(); } @Override public SortedSet<E> tailSet(@ParametricNullness E fromElement) { return multiset().tailMultiset(fromElement, CLOSED).elementSet(); } @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Oct 01 17:18:04 UTC 2021 - 5.6K bytes - Viewed (0) -
cmd/lock-rest-client.go
func (c *lockRESTClient) IsOnline() bool { return c.connection.State() == grid.StateConnected } // Not a local locker func (c *lockRESTClient) IsLocal() bool { return false } // Close - marks the client as closed. func (c *lockRESTClient) Close() error { return nil } // String - returns the remote host of the connection. func (c *lockRESTClient) String() string { return c.connection.Remote }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Nov 24 17:07:14 UTC 2023 - 3.3K bytes - Viewed (0)