// NewPool returns a new flake id generator using the underlying set of generators.
NewPool returns a new flake id generator using the underlying set of generators.
// NewPool returns a new flake id generator using the underlying set of generators .
func NewPool(generators ...Generator) (Generator, error) {
	gPool := &generatorPool{
		pool: make(chan Generator, len(generators)),
	}
	for _, g := range generators {
		gPool.put(g)
	}
	return gPool, nil
}
func NewPool ( generators ... Generator ) ( Generator , error ) { gPool := & generatorPool { pool : make ( chan Generator , len ( generators ) ) , } for _ , g := range generators { gPool . put ( g ) } return gPool , nil }
NewPool returns a new flake id generator using the underlying set of generators.
NewPool returns a new flake id generator using the underlying set of generators .