To be clear:

```java
for (T i : is) {
    if (o.isUnsubscribed()) {
        return;
    }
    o.onNext(i);
}
if (!o.isUnsubscribed()) {
   o.onCompleted();
}