Stream is used to execute a stream of tasks concurrently while maintaining the order of the results. To use a stream, you submit some number of `Task`s, each of which return a callback. Each task will be executed concurrently in the stream's associated Pool, and the callbacks will be executed seque
| 36 | // microseconds, and the overhead for each task is roughly 500ns. It should be |
| 37 | // good enough for any task that requires a network call. |
| 38 | type Stream struct { |
| 39 | pool pool.Pool |
| 40 | callbackerHandle conc.WaitGroup |
| 41 | queue chan callbackCh |
| 42 | |
| 43 | initOnce sync.Once |
| 44 | } |
| 45 | |
| 46 | // Task is a task that is submitted to the stream. Submitted tasks will |
| 47 | // be executed concurrently. It returns a callback that will be called after |
nothing calls this directly
no outgoing calls
no test coverage detected