kotlin-stdlib / kotlin.collections / AbstractIterator / done done Common JVM JS Native 1.0 protected fun done() Sets the state to done so that the iteration terminates.