Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for LoaderBatch (0.17 sec)

  1. test/fixedbugs/issue49143.dir/a.go

    package a
    
    import "sync"
    
    type Loader[K comparable, R any] struct {
    	batch *LoaderBatch[K, R]
    }
    
    func (l *Loader[K, R]) Load() error {
    	l.batch.f()
    	return nil
    }
    
    type LoaderBatch[K comparable, R any] struct {
    	once    *sync.Once
    }
    
    func (b *LoaderBatch[K, R]) f() {
    	b.once.Do(func() {})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 27 05:33:58 UTC 2021
    - 451 bytes
    - Viewed (0)
Back to top