Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for oldName (0.37 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

                return null;
              }
            };
        Callables.threadRenaming(callable, newName).call();
        assertEquals(oldName, Thread.currentThread().getName());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testRenaming_exceptionalReturn() throws Exception {
        String oldName = Thread.currentThread().getName();
        final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

                return null;
              }
            };
        Callables.threadRenaming(callable, newName).call();
        assertEquals(oldName, Thread.currentThread().getName());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testRenaming_exceptionalReturn() throws Exception {
        String oldName = Thread.currentThread().getName();
        final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. migrator.go

    	GetTypeAliases(databaseTypeName string) []string
    
    	// Tables
    	CreateTable(dst ...interface{}) error
    	DropTable(dst ...interface{}) error
    	HasTable(dst interface{}) bool
    	RenameTable(oldName, newName interface{}) error
    	GetTables() (tableList []string, err error)
    	TableType(dst interface{}) (TableType, error)
    
    	// Columns
    	AddColumn(dst interface{}, field string) error
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/Callables.java

        return () -> {
          Thread currentThread = Thread.currentThread();
          String oldName = currentThread.getName();
          boolean restoreName = trySetName(nameSupplier.get(), currentThread);
          try {
            return callable.call();
          } finally {
            if (restoreName) {
              boolean unused = trySetName(oldName, currentThread);
            }
          }
        };
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. pkg/kubelet/container/os.go

    func (RealOS) MkdirAll(path string, perm os.FileMode) error {
    	return os.MkdirAll(path, perm)
    }
    
    // Symlink will call os.Symlink to create a symbolic link.
    func (RealOS) Symlink(oldname string, newname string) error {
    	return os.Symlink(oldname, newname)
    }
    
    // Stat will call os.Stat to get the FileInfo for a given path
    func (RealOS) Stat(path string) (os.FileInfo, error) {
    	return os.Stat(path)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 03:35:26 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/Callables.java

        return () -> {
          Thread currentThread = Thread.currentThread();
          String oldName = currentThread.getName();
          boolean restoreName = trySetName(nameSupplier.get(), currentThread);
          try {
            return callable.call();
          } finally {
            if (restoreName) {
              boolean unused = trySetName(oldName, currentThread);
            }
          }
        };
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. pkg/kubelet/container/testing/os.go

    	if f.MkdirAllFn != nil {
    		return f.MkdirAllFn(path, perm)
    	}
    	return nil
    }
    
    // Symlink is a fake call that just returns nil.
    func (f *FakeOS) Symlink(oldname string, newname string) error {
    	if f.SymlinkFn != nil {
    		return f.SymlinkFn(oldname, newname)
    	}
    	return nil
    }
    
    // Stat is a fake that returns an error
    func (f *FakeOS) Stat(path string) (os.FileInfo, error) {
    	if f.StatFn != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 13:37:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  8. src/internal/diff/diff.go

    // when in fact the algorithm is faster than the standard one.
    func Diff(oldName string, old []byte, newName string, new []byte) []byte {
    	if bytes.Equal(old, new) {
    		return nil
    	}
    	x := lines(old)
    	y := lines(new)
    
    	// Print diff header.
    	var out bytes.Buffer
    	fmt.Fprintf(&out, "diff %s %s\n", oldName, newName)
    	fmt.Fprintf(&out, "--- %s\n", oldName)
    	fmt.Fprintf(&out, "+++ %s\n", newName)
    
    	// Loop over matches to consider,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 14:13:04 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/promise/promise_test.go

    limitations under the License.
    */
    
    package promise
    
    import (
    	"context"
    	"testing"
    	"time"
    
    	"k8s.io/apimachinery/pkg/util/wait"
    )
    
    func TestWriteOnceSet(t *testing.T) {
    	oldTime := time.Now()
    	cval := &oldTime
    	ctx, cancel := context.WithCancel(context.Background())
    	wr := NewWriteOnce(nil, ctx, cval)
    	gots := make(chan interface{})
    	goGetExpectNotYet(t, wr, gots, "Set")
    	now := time.Now()
    	aval := &now
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 19:19:31 UTC 2023
    - 3K bytes
    - Viewed (0)
  10. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRuleTest.groovy

        static class OldSuper {}
    
        static class OldBase extends OldSuper {}
    
        static class NewSuper {}
    
        static class NewBase extends NewSuper {}
    
        @Incubating
        static class NewIncubatingBase extends NewSuper {}
    
        @Incubating
        interface IncubatingInterface {}
    
        interface InternalInterface {}
    
        interface StablePublicInterface {}
    
        CtClass oldBase
        CtClass newBase
        CtClass newSuper
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 4K bytes
    - Viewed (0)
Back to top