(source, transform)
| 507 | } |
| 508 | |
| 509 | function* applyStatefulSyncTransform(source, transform) { |
| 510 | const output = transform(withFlushSync(source)); |
| 511 | for (const item of output) { |
| 512 | const batch = []; |
| 513 | for (const chunk of flattenTransformYieldSync(item)) { |
| 514 | ArrayPrototypePush(batch, chunk); |
| 515 | } |
| 516 | if (batch.length > 0) { |
| 517 | yield batch; |
| 518 | } |
| 519 | } |
| 520 | } |
| 521 | |
| 522 | /** |
| 523 | * Create a sync pipeline from source through transforms. |
no test coverage detected
searching dependent graphs…