We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75fa3ba commit 5231955Copy full SHA for 5231955
lib/src/embedded/sync_receive_port.dart
@@ -6,8 +6,10 @@ import 'dart:typed_data';
6
export 'vm/sync_receive_port.dart'
7
if (dart.library.js) 'js/sync_receive_port.dart';
8
9
-/// A common interface that is implemented by wrapping
10
-/// Dart Mailbox or JS SyncMessagePort.
+/// A port that receives message synchronously across workers.
11
abstract interface class SyncReceivePort {
+ /// Receives a message from the port.
12
+ ///
13
+ /// Throws [StateError] if called after port has been closed.
14
Uint8List receive();
15
}
0 commit comments