MCPcopy
hub / github.com/panjf2000/ants / Running

Method Running

ants.go:339–341  ·  view source on GitHub ↗

Running returns the number of workers currently running.

()

Source from the content-addressed store, hash-verified

337
338// Running returns the number of workers currently running.
339func (p *poolCommon) Running() int {
340 return int(atomic.LoadInt32(&p.running))
341}
342
343// Free returns the number of available workers, -1 indicates this pool is unlimited.
344func (p *poolCommon) Free() int {

Calls

no outgoing calls