| 1609 | |
| 1610 | struct SlowEmptyIterator { |
| 1611 | Result<TestInt> Next() { |
| 1612 | if (called_) { |
| 1613 | return Status::Invalid("Should not have been called twice"); |
| 1614 | } |
| 1615 | SleepFor(0.1); |
| 1616 | return IterationTraits<TestInt>::End(); |
| 1617 | } |
| 1618 | |
| 1619 | private: |
| 1620 | bool called_ = false; |