Skip to content

Commit

Permalink
Fix a comment (#2316)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Aug 22, 2024
1 parent eb6c19e commit 2bf3ae0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/embedded/reusable_isolate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import 'package:native_synchronization/sendable.dart';
///
/// This must be a static global function. It's run when the isolate is spawned,
/// and is passed a [Mailbox] that receives messages from [ReusableIsolate.send]
/// and a [SendPort] that sends messages to the stream returned by
/// [ReusableIsolate.checkOut].
/// and a [SendPort] that sends messages to the [ReceivePort] listened by
/// [ReusableIsolate.borrow].
///
/// If the [sendPort] sends a message before [ReusableIsolate.checkOut] is
/// called, this will throw an unhandled [StateError].
/// If the [sendPort] sends a message before [ReusableIsolate.borrow] is called,
/// this will throw an unhandled [StateError].
typedef ReusableIsolateEntryPoint = FutureOr<void> Function(
Mailbox mailbox, SendPort sink);

Expand Down

0 comments on commit 2bf3ae0

Please sign in to comment.