New creates a new Stream with default settings.
()
| 11 | |
| 12 | // New creates a new Stream with default settings. |
| 13 | func 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. |