Skip to content

Commit 5231955

Browse files
committed
Apply review feedbacks
1 parent 75fa3ba commit 5231955

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/src/embedded/sync_receive_port.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import 'dart:typed_data';
66
export 'vm/sync_receive_port.dart'
77
if (dart.library.js) 'js/sync_receive_port.dart';
88

9-
/// A common interface that is implemented by wrapping
10-
/// Dart Mailbox or JS SyncMessagePort.
9+
/// A port that receives message synchronously across workers.
1110
abstract interface class SyncReceivePort {
11+
/// Receives a message from the port.
12+
///
13+
/// Throws [StateError] if called after port has been closed.
1214
Uint8List receive();
1315
}

0 commit comments

Comments
 (0)