MCPcopy Create free account
hub / github.com/Super-long/ChubbyGo / Iter

Method Iter

BaseServer/concurrentHashMap.go:191–196  ·  view source on GitHub ↗

Returns an iterator which could be used in a for range loop. Deprecated: using IterBuffered() will get a better performence

()

Source from the content-addressed store, hash-verified

189//
190// Deprecated: using IterBuffered() will get a better performence
191func (m ConcurrentHashMap) Iter() <-chan Tuple {
192 chans := snapshot(m)
193 ch := make(chan Tuple)
194 go fanIn(chans, ch)
195 return ch
196}
197
198// Returns a buffered iterator which could be used in a for range loop.
199// 相当于所有的值都缓存在channel中

Callers

nothing calls this directly

Calls 2

snapshotFunction · 0.85
fanInFunction · 0.85

Tested by

no test coverage detected