Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwindmill committed Jan 4, 2024
1 parent 508c6ae commit 8c31560
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Worker {
}

static Future<Worker> spawn() async {
// Create a receive port and add it's initial message handler
// Create a receive port and add its initial message handler
final initPort = RawReceivePort();
final connection = Completer<(ReceivePort, SendPort)>.sync();
initPort.handler = (initialMessage) {
Expand Down
2 changes: 1 addition & 1 deletion examples/concurrency/lib/robust_ports_example/step_4.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Worker {
final ReceivePort _responses;
// #enddocregion constructor
static Future<Worker> spawn() async {
// Create a receive port and add it's initial message handler
// Create a receive port and add its initial message handler
final initPort = RawReceivePort();
final connection = Completer<(ReceivePort, SendPort)>.sync();
initPort.handler = (initialMessage) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Worker {
// #enddocregion vars

static Future<Worker> spawn() async {
// Create a receive port and add it's initial message handler
// Create a receive port and add its initial message handler
final initPort = RawReceivePort();
final connection = Completer<(ReceivePort, SendPort)>.sync();
initPort.handler = (initialMessage) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Worker {
int _idCounter = 0;

static Future<Worker> spawn() async {
// Create a receive port and add it's initial message handler
// Create a receive port and add its initial message handler
final initPort = RawReceivePort();
final connection = Completer<(ReceivePort, SendPort)>.sync();
initPort.handler = (initialMessage) {
Expand Down
2 changes: 1 addition & 1 deletion src/language/isolates.md
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ class Worker {
}
static Future<Worker> spawn() async {
// Create a receive port and add it's initial message handler
// Create a receive port and add its initial message handler
final initPort = RawReceivePort();
final connection = Completer<(ReceivePort, SendPort)>.sync();
initPort.handler = (initialMessage) {
Expand Down

0 comments on commit 8c31560

Please sign in to comment.