- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 686 for closeFn (0.22 sec)
-
src/runtime/race/testdata/chan_test.go
go func() { v = 1 close(c) }() _, _ = <-c v = 2 } func TestNoRaceChanSyncCloseRecv3(t *testing.T) { v := 0 _ = v c := make(chan int) go func() { v = 1 close(c) }() for range c { } v = 2 } func TestRaceChanSyncCloseSend(t *testing.T) { v := 0 _ = v c := make(chan int) go func() { v = 1 close(c) }() func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 19:55:29 UTC 2023 - 11K bytes - Viewed (0) -
src/os/exec/exec_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 20:13:53 UTC 2024 - 48.4K bytes - Viewed (0) -
src/net/error_test.go
// parseCloseError parses nestedErr and reports whether it is a valid // error value from Close functions. // It returns nil when nestedErr is valid. func parseCloseError(nestedErr error, isShutdown bool) error { if nestedErr == nil { return nil } // Because historically we have not exported the error that we // return for an operation on a closed network connection, // there are programs that test for the exact error string.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 20.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Fri Mar 22 07:09:21 UTC 2024 - 10.2K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultExclusiveCacheAccessCoordinatorTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 24K bytes - Viewed (0) -
pkg/scheduler/scheduler.go
go wait.UntilWithContext(ctx, sched.ScheduleOne, 0) <-ctx.Done() sched.SchedulingQueue.Close() // If the plugins satisfy the io.Closer interface, they are closed. err := sched.Profiles.Close() if err != nil { logger.Error(err, "Failed to close plugins") } } // NewInformerFactory creates a SharedInformerFactory and initializes a scheduler specific
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:20:55 UTC 2024 - 20.8K bytes - Viewed (0) -
src/net/splice_linux_test.go
t.Skip("skipping test on unix socket") } hook := hookSplice(t) clientUp, serverUp := spawnTestSocketPair(t, upNet) defer clientUp.Close() clientDown, serverDown := spawnTestSocketPair(t, downNet) defer clientDown.Close() defer serverDown.Close() serverUp.Close() // We'd like to call net.spliceFrom here and check the handled return // value, but we disable splice on old Linux kernels. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 14.5K bytes - Viewed (0) -
internal/rest/client.go
return } // ErrClientClosed returned when *Client is closed. var ErrClientClosed = errors.New("rest client is closed") // Call - make a REST call with context. func (c *Client) Call(ctx context.Context, method string, values url.Values, body io.Reader, length int64) (reply io.ReadCloser, err error) { switch atomic.LoadInt32(&c.connected) { case closed: // client closed, this is usually a manual process
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 14.4K bytes - Viewed (0) -
src/context/context.go
// Done returns a channel that's closed when work done on behalf of this // context should be canceled. Done may return nil if this context can // never be canceled. Successive calls to Done return the same value. // The close of the Done channel may happen asynchronously, // after the cancel function returns. // // WithCancel arranges for Done to be closed when cancel is called;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 23.7K bytes - Viewed (0) -
src/internal/poll/fd_windows.go
func (fd *FD) Close() error { if !fd.fdmu.increfAndClose() { return errClosing(fd.isFile) } if fd.kind == kindPipe { syscall.CancelIoEx(fd.Sysfd, nil) } // unblock pending reader and writer fd.pd.evict() err := fd.decref() // Wait until the descriptor is closed. If this was the only // reference, it is already closed. runtime_Semacquire(&fd.csema) return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 16:50:42 UTC 2024 - 34.1K bytes - Viewed (0)