diff --git a/examples/concurrency/lib/basic_ports_example/start.dart b/examples/concurrency/lib/basic_ports_example/start.dart index 1a494eb6cc..d17893d375 100644 --- a/examples/concurrency/lib/basic_ports_example/start.dart +++ b/examples/concurrency/lib/basic_ports_example/start.dart @@ -8,11 +8,11 @@ class Worker { } void _handleResponsesFromIsolate(dynamic message) { - // TODO: Define code that should be executed on the worker isolate. + // TODO: Handle messages sent back from the worker isolate. } static void _startRemoteIsolate(SendPort port) { - // TODO: Handle messages sent back from the worker isolate. + // TODO: Define code that should be executed on the worker isolate. } Future parseJson(String message) async { diff --git a/src/language/isolates.md b/src/language/isolates.md index bb5c100ee4..f3c3607d4f 100644 --- a/src/language/isolates.md +++ b/src/language/isolates.md @@ -310,11 +310,11 @@ class Worker { } void _handleResponsesFromIsolate(dynamic message) { - // TODO: Define code that should be executed on the worker isolate. + // TODO: Handle messages sent back from the worker isolate. } static void _startRemoteIsolate(SendPort port) { - // TODO: Handle messages sent back from the worker isolate. + // TODO: Define code that should be executed on the worker isolate. } Future parseJson(String message) async {