Skip to content

Commit 779e378

Browse files
authored
Update isolates.md - TODOs are reversed (#5500)
Fixes confusing (because reversed) Todo comments in the mini exercise.
1 parent 394aa0f commit 779e378

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/concurrency/lib/basic_ports_example/start.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ class Worker {
88
}
99

1010
void _handleResponsesFromIsolate(dynamic message) {
11-
// TODO: Define code that should be executed on the worker isolate.
11+
// TODO: Handle messages sent back from the worker isolate.
1212
}
1313

1414
static void _startRemoteIsolate(SendPort port) {
15-
// TODO: Handle messages sent back from the worker isolate.
15+
// TODO: Define code that should be executed on the worker isolate.
1616
}
1717

1818
Future<void> parseJson(String message) async {

src/language/isolates.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,11 @@ class Worker {
310310
}
311311
312312
void _handleResponsesFromIsolate(dynamic message) {
313-
// TODO: Define code that should be executed on the worker isolate.
313+
// TODO: Handle messages sent back from the worker isolate.
314314
}
315315
316316
static void _startRemoteIsolate(SendPort port) {
317-
// TODO: Handle messages sent back from the worker isolate.
317+
// TODO: Define code that should be executed on the worker isolate.
318318
}
319319
320320
Future<void> parseJson(String message) async {

0 commit comments

Comments
 (0)