Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update isolates.md: Robust Example Fix #5725

Merged
merged 3 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/concurrency/lib/robust_ports_example/spawn_1.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Worker {
_commands.send(message);
}

Worker._(this._commands, this._responses) {
Worker._(this._responses, this._commands) {
// TODO: Initialize main isolate receive port listener.
}

Expand Down
4 changes: 2 additions & 2 deletions examples/concurrency/lib/robust_ports_example/spawn_2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Worker {
final (ReceivePort receivePort, SendPort sendPort) =
await connection.future;

return Worker._(sendPort, receivePort);
return Worker._(receivePort, sendPort);
}
// #enddocregion worker-spawn

Expand All @@ -39,7 +39,7 @@ class Worker {
_commands.send(message);
}

Worker._(this._commands, this._responses) {
Worker._(this._responses, this._commands) {
// TODO: Initialize main isolate receive port listener.
}

Expand Down
2 changes: 1 addition & 1 deletion examples/concurrency/lib/robust_ports_example/start.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Worker {
throw UnimplementedError();
}

Worker._(this._commands, this._responses) {
Worker._(this._responses, this._commands) {
// TODO: Initialize main isolate receive port listener.
}

Expand Down
4 changes: 2 additions & 2 deletions src/content/language/isolates.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ class Worker {
throw UnimplementedError();
}

Worker._(this._commands, this._responses) {
Worker._(this._responses, this._commands) {
// TODO: Initialize main isolate receive port listener.
}

Expand Down Expand Up @@ -689,7 +689,7 @@ class Worker {
final (ReceivePort receivePort, SendPort sendPort) =
await connection.future;

return Worker._(sendPort, receivePort);
return Worker._(receivePort, sendPort);
}
```

Expand Down