Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 131 for Inits (0.06 sec)

  1. internal/pubsub/pubsub.go

    }
    
    // Subscribers returns the number of current subscribers for all types.
    func (ps *PubSub[T, M]) Subscribers() int32 {
    	return atomic.LoadInt32(&ps.numSubscribers)
    }
    
    // New inits a PubSub system with a limit of maximum
    // subscribers unless zero is specified
    func New[T Maskable, M Maskable](maxSubscribers int32) *PubSub[T, M] {
    	return &PubSub[T, M]{maxSubscribers: maxSubscribers}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 16:57:30 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/resolver.go

    // another (constant) declaration.
    func (check *Checker) arity(pos syntax.Pos, names []*syntax.Name, inits []syntax.Expr, constDecl, inherited bool) {
    	l := len(names)
    	r := len(inits)
    
    	const code = WrongAssignCount
    	switch {
    	case l < r:
    		n := inits[l]
    		if inherited {
    			check.errorf(pos, code, "extra init expr at %s", n.Pos())
    		} else {
    			check.errorf(n, code, "extra init expr %s", n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  3. src/go/internal/gccgoimporter/parser.go

    	case "priority":
    		p.next()
    		p.initdata.Priority = p.parseInt()
    		p.expectEOL()
    
    	case "init":
    		p.next()
    		for p.tok != '\n' && p.tok != ';' && p.tok != scanner.EOF {
    			p.initdata.Inits = append(p.initdata.Inits, p.parsePackageInit())
    		}
    		p.expectEOL()
    
    	case "init_graph":
    		p.next()
    		// The graph data is thrown away for now.
    		for p.tok != '\n' && p.tok != ';' && p.tok != scanner.EOF {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/api_test.go

    		// number of initializers must match
    		if len(info.InitOrder) != len(test.inits) {
    			t.Errorf("package %s: got %d initializers; want %d", name, len(info.InitOrder), len(test.inits))
    			continue
    		}
    
    		// initializers must match
    		for i, want := range test.inits {
    			got := info.InitOrder[i].String()
    			if got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  5. src/runtime/extern.go

    	inittrace: setting inittrace=1 causes the runtime to emit a single line to standard
    	error for each package with init work, summarizing the execution time and memory
    	allocation. No information is printed for inits executed as part of plugin loading
    	and for packages without both user defined and compiler generated init work.
    	The format of this line is subject to change. Currently, it is:
    		init # @#ms, # ms clock, # bytes, # allocs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. src/go/types/api_test.go

    		// number of initializers must match
    		if len(info.InitOrder) != len(test.inits) {
    			t.Errorf("package %s: got %d initializers; want %d", name, len(info.InitOrder), len(test.inits))
    			continue
    		}
    
    		// initializers must match
    		for i, want := range test.inits {
    			got := info.InitOrder[i].String()
    			if got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  7. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/Units.java

                }
                return -1;
            }
    
            public void add(ScaledUnits<Q> units) {
                this.units.add(units);
                Collections.sort(this.units);
            }
        }
    
        private static class ScaledUnits<Q> extends Units<Q> {
            private final BaseUnits<Q> baseUnits;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/Amount.java

            }
            int diff = units.compareTo(other.units);
            if (diff == 0) {
                return new Amount<>(value.add(other.value), units);
            }
            if (diff < 0) {
                return new Amount<>(value.add(other.units.scaleTo(other.value, units)), units);
            }
            return new Amount<>(units.scaleTo(value, other.units).add(other.value), other.units);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/measure/AmountTest.groovy

            5.9     | Fruit.apples  | 2      | Fruit.oranges
        }
    
        def "can add amounts with same units"() {
            expect:
            Amount.valueOf(a, units) + Amount.valueOf(b, units) == Amount.valueOf(c, units)
    
            where:
            a    | b     | c      | units
            0    | 0     | 0      | Fruit.apples
            1    | 2     | 3      | Fruit.apples
            1    | 2     | 3      | Fruit.oranges
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  10. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/DataAmount.java

    import java.math.BigDecimal;
    
    public class DataAmount {
        public static final Units<DataAmount> BYTES = Units.base(DataAmount.class, "B");
        public static final Units<DataAmount> KILO_BYTES = BYTES.times(1024, "kB");
        public static final Units<DataAmount> MEGA_BYTES = KILO_BYTES.times(1024, "MB");
        public static final Units<DataAmount> GIGA_BYTES = MEGA_BYTES.times(1024, "GB");
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top