| 1251 | |
| 1252 | struct SlowEmptyIterator { |
| 1253 | Result<TestInt> Next() { |
| 1254 | if (called_) { |
| 1255 | return Status::Invalid("Should not have been called twice"); |
| 1256 | } |
| 1257 | SleepFor(0.1); |
| 1258 | return IterationTraits<TestInt>::End(); |
| 1259 | } |
| 1260 | |
| 1261 | private: |
| 1262 | bool called_ = false; |