Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lamnhan066 committed Dec 27, 2024
1 parent c460ea8 commit b777015
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/src/isolate_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,13 @@ class IsolateManager<R, P> {

/// Initialize the instance. This method can be called manually or will be
/// called when the first `compute()` has been made.
///
/// **Notice:** Avoid using this method when creating a new instance like this
/// to avoid unexpected behavior:
///
/// ```dart
/// final isolate = IsolateManager.create(function)..start();
/// ```
Future<void> start() async {
// This instance is stoped.
if (_streamController.isClosed) return;
Expand Down

0 comments on commit b777015

Please sign in to comment.