MCPcopy Index your code
hub / github.com/sourcegraph/conc / New

Function New

stream/stream.go:13–17  ·  view source on GitHub ↗

New creates a new Stream with default settings.

()

Source from the content-addressed store, hash-verified

11
12// New creates a new Stream with default settings.
13func New() *Stream {
14 return &Stream{
15 pool: *pool.New(),
16 }
17}
18
19// Stream is used to execute a stream of tasks concurrently while maintaining
20// the order of the results.

Callers 3

ExampleStreamFunction · 0.70
TestStreamFunction · 0.70
BenchmarkStreamFunction · 0.70

Calls 1

NewFunction · 0.92

Tested by 3

ExampleStreamFunction · 0.56
TestStreamFunction · 0.56
BenchmarkStreamFunction · 0.56