Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Unified Diff: sdk/lib/core/iterable.dart

Issue 27308003: Document that concurrent modification is bad, m'kay. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/core/iterable.dart
diff --git a/sdk/lib/core/iterable.dart b/sdk/lib/core/iterable.dart
index 42ecd46652decb7d73fd399d9ac41332770d25e3..ed4ebcc8f10c2fdfd5513c64d5f2dbdc01aee6de 100644
--- a/sdk/lib/core/iterable.dart
+++ b/sdk/lib/core/iterable.dart
@@ -25,6 +25,11 @@ part of dart.core;
* You can implement Iterable in your own class.
* If you do, then an instance of your Iterable class
* can be the right-hand side of a for-in construct.
+ *
+ * Some subclasss of `Iterable` can be modified. It is generally not allowed
+ * to modify such collections while they are being iterated. Doing so will break
+ * the iteration, which is typically signalled by throwing a
+ * [CuncurrentModificationError] when it is detected.
karlklose 2013/10/15 14:15:14 CuncurrentModificationError -> C*o*ncurrentModific
Lasse Reichstein Nielsen 2013/10/16 05:41:24 Ack, thanks.
*/
abstract class Iterable<E> {
const Iterable();

Powered by Google App Engine
This is Rietveld 408576698