13 lines
178 B
Go
13 lines
178 B
Go
|
package channel
|
||
|
|
||
|
import "runtime"
|
||
|
|
||
|
type mapEntry[K comparable, V any] struct {
|
||
|
Key K
|
||
|
Value V
|
||
|
}
|
||
|
|
||
|
func getDefaultRunner() Runner {
|
||
|
return NewLimitedRunner(runtime.NumCPU())
|
||
|
}
|