Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

         *     class Inner { // scope2  ClassId = Other.Inner
         *       fun foo() {
         *         // Distance to scopes for classes from <element> in the order from the closest:
         *         //   scope2 -> scope3 -> scope1
         *         <element>
         *       }
         *       companion object { // scope3  ClassId = Other.Inner.Companion
         *       }
         *     }
         *   }
         *
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 16:54:07 UTC 2024
    - 69.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFile.java

         * {@inheritDoc}
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
        public synchronized void close () {
            SmbTreeHandleImpl th = this.treeHandle;
            if ( th != null ) {
                this.treeHandle = null;
                if ( this.transportContext.getConfig().isStrictResourceLifecycle() ) {
                    th.close();
                }
            }
        }
    
    
        /**
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (1)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

        assertEquals(set, Sets.subSet(set, Range.closed(0, 12)));
        assertEquals(ImmutableSortedSet.of(2, 4), Sets.subSet(set, Range.closed(0, 4)));
        assertEquals(ImmutableSortedSet.of(2, 4, 6), Sets.subSet(set, Range.closed(2, 6)));
        assertEquals(ImmutableSortedSet.of(4, 6), Sets.subSet(set, Range.closed(3, 7)));
        assertEquals(empty, Sets.subSet(set, Range.closed(20, 30)));
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
  4. src/crypto/tls/handshake_server_test.go

    	if err != context.Canceled {
    		t.Errorf("Unexpected server handshake error: %v", err)
    	}
    	if runtime.GOARCH == "wasm" {
    		t.Skip("conn.Close does not error as expected when called multiple times on WASM")
    	}
    	err = conn.Close()
    	if err == nil {
    		t.Error("Server connection was not closed when the context was canceled")
    	}
    }
    
    // TestHandshakeContextHierarchy tests whether the contexts
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    	// We won't take it as error and also close the watcher.
    	w, err := store.Watch(canceledCtx, "/pods/not-existing", storage.ListOptions{
    		ResourceVersion: "0",
    		Predicate:       storage.Everything,
    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	select {
    	case _, ok := <-w.ResultChan():
    		if ok {
    			t.Error("ResultChan() should be closed")
    		}
    	case <-time.After(wait.ForeverTestTimeout):
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  6. cmd/xl-storage.go

    	if err != nil {
    		w.Close()
    		return err
    	}
    
    	if n != len(b) {
    		w.Close()
    		return io.ErrShortWrite
    	}
    
    	// Dealing with error returns from close() - 'man 2 close'
    	//
    	// A careful programmer will check the return value of close(), since it is quite possible that
    	// errors on a previous write(2) operation are reported only on the final close() that releases
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (2)
  7. src/testing/testing.go

    			return
    		}
    		if err := m.deps.StartCPUProfile(f); err != nil {
    			fmt.Fprintf(os.Stderr, "testing: can't start cpu profile: %s\n", err)
    			f.Close()
    			return
    		}
    		// Could save f so after can call f.Close; not worth the effort.
    	}
    	if *traceFile != "" {
    		f, err := os.Create(toOutputDir(*traceFile))
    		if err != nil {
    			fmt.Fprintf(os.Stderr, "testing: %s\n", err)
    			return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    // It is a pseudo handle that does not need to be closed.
    // The returned error is always nil.
    //
    // Deprecated: use CurrentProcess for the same Handle without the nil
    // error.
    func GetCurrentProcess() (Handle, error) {
    	return CurrentProcess(), nil
    }
    
    // CurrentProcess returns the handle for the current process.
    // It is a pseudo handle that does not need to be closed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  9. src/cmd/go/internal/test/test.go

    	if cfg.DebugTrace != "" {
    		var close func() error
    		var err error
    		ctx, close, err = trace.Start(ctx, cfg.DebugTrace)
    		if err != nil {
    			base.Fatalf("failed to start trace: %v", err)
    		}
    		defer func() {
    			if err := close(); err != nil {
    				base.Fatalf("failed to stop trace: %v", err)
    			}
    		}()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Sets.java

              range.lowerBoundType() == BoundType.CLOSED,
              range.upperEndpoint(),
              range.upperBoundType() == BoundType.CLOSED);
        } else if (range.hasLowerBound()) {
          return set.tailSet(range.lowerEndpoint(), range.lowerBoundType() == BoundType.CLOSED);
        } else if (range.hasUpperBound()) {
          return set.headSet(range.upperEndpoint(), range.upperBoundType() == BoundType.CLOSED);
        }
        return checkNotNull(set);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 77.3K bytes
    - Viewed (0)
Back to top