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

Unified Diff: pkg/http/test/safe_http_server.dart

Issue 14251013: Rename unsubscribeOnError to cancelOnError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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: pkg/http/test/safe_http_server.dart
diff --git a/pkg/http/test/safe_http_server.dart b/pkg/http/test/safe_http_server.dart
index 8acc1abb6117bd483a789ffe542c493a8d7a3a4e..e73f00f08555429c38f0e4deebd0f7c288bc424b 100644
--- a/pkg/http/test/safe_http_server.dart
+++ b/pkg/http/test/safe_http_server.dart
@@ -43,7 +43,7 @@ class SafeHttpServer extends StreamView<HttpRequest> implements HttpServer {
StreamSubscription<HttpRequest> listen(void onData(HttpRequest value),
{void onError(AsyncError error), void onDone(),
- bool unsubscribeOnError: false}) {
+ bool cancelOnError: false}) {
var subscription;
subscription = super.listen((request) {
onData(new _HttpRequestWrapper(request));
@@ -55,9 +55,9 @@ class SafeHttpServer extends StreamView<HttpRequest> implements HttpServer {
if (error is SocketIOException && error.osError.errorCode == 104) return;
// Ignore any parsing errors, which come from malformed requests.
if (error is HttpParserException) return;
- // Manually handle unsubscribeOnError so the above (ignored) errors don't
+ // Manually handle cancelOnError so the above (ignored) errors don't
// cause unsubscription.
- if (unsubscribeOnError) subscription.cancel();
+ if (cancelOnError) subscription.cancel();
if (onError != null) onError(e);
}, onDone: onDone);
return subscription;
« no previous file with comments | « no previous file | pkg/scheduled_test/lib/src/scheduled_server/safe_http_server.dart » ('j') | sdk/lib/async/stream.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698