()
| 305 | } |
| 306 | |
| 307 | func (ar *arrayReader[T]) toStream() *stream[T] { |
| 308 | s := newStream[T](len(ar.arr) - ar.index) |
| 309 | for i := ar.index; i < len(ar.arr); i++ { |
| 310 | s.send(ar.arr[i], nil) |
| 311 | } |
| 312 | s.closeSend() |
| 313 | return s |
| 314 | } |
| 315 | |
| 316 | // multiStreamReader 合并多个流 |
| 317 | type multiStreamReader[T any] struct { |
no test coverage detected