Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getEvents (0.1 sec)

  1. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        assertEquals(
            "One correct event should be delivered.", Lists.newArrayList(EVENT), catcher2.getEvents());
    
        bus.unregister(catcher1);
        bus.post(EVENT);
    
        assertEquals(
            "Shouldn't catch any more events when unregistered.", expectedEvents, catcher1.getEvents());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. cmd/os_unix.go

    	}
    
    	return nil
    }
    
    // The buffer must be at least a block long.
    // refer https://github.com/golang/go/issues/24015
    const blockSize = 8 << 10 // 8192
    
    // By default at least 128 entries in single getdents call (1MiB buffer)
    var (
    	direntPool = sync.Pool{
    		New: func() interface{} {
    			buf := make([]byte, blockSize*128)
    			return &buf
    		},
    	}
    
    	direntNamePool = sync.Pool{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top