isolate_manager 2.2.0 copy "isolate_manager: ^2.2.0" to clipboard
isolate_manager: ^2.2.0 copied to clipboard

A plugin that helps you create multiple isolates for a function, keep it active, and compute with it (Also supports Worker.js on Web).

2.2.0 #

  • Support try-catch block for all platforms including Worker on Web.
  • Update worker.dart to support try-catch block.
  • Change all the debug logs prefix to [Isolate Mangager].
  • Add test for try-catch.
  • Increase min SDK to 2.15.0.

2.1.2+1 #

  • Improve pub scores.

2.1.2 #

  • The method .start() is now optional, the plugin will automatically call this method when using .compute for the first time, so you have 3 way to create the instance:

    1. Basic usage:
    IsolateManager<int> isolateManager = IsolateManager.create(
      fibonacci,
      concurrent: 4,
    );
    
    await isolateManager.start();
    
    1. Use start without await:
    IsolateManager<int> isolateManager = IsolateManager.create(
      fibonacci,
      concurrent: 4,
    );
    
    isolateManager.start();
    
    1. Use start when creating the instance:
    IsolateManager<int> isolateManager = IsolateManager.create(
      fibonacci,
      concurrent: 4,
    )..start();
    

2.1.1 #

  • On Flutter >3.3.0 - @pragma('vm:entry-point') anotation must be added to all methods that you want to use for isolation. Read README for more information.

2.1.0 #

  • [BREADKING CHANGE]: Change the parameter name from numOfIsolates to concurrent.
  • Update dependencies.

2.0.2+3 #

  • Improve README.

2.0.2+2 #

  • Changes the name from function_name to worker.
  • Improves worker.dart form.
  • Improves README.

2.0.2 #

  • Fixes issue in restart and stop methods.

2.0.1+3 #

  • Improve function headers.

2.0.1+2 #

  • Update function headers.
  • Update README.
  • Update dependencies.

2.0.1+1 #

  • Update base function_name.dart to make it works with FutureOr function.
  • Add function_name.js to example and create example for it.

2.0.1 #

  • Remove useless await in README.
  • Downgrade Dart SDK min version to 2.12.0.

2.0.0 #

  • NO BREAKING CHANGE
  • Add Worker for Web platform (real Isolate on Web). Read README for more details.

1.0.0+1 #

  • Update README

1.0.0 #

  • BREAKING CHANGE: Change isolateFunction parameter of createOwnIsolate method from named to required parameter.
  • Added initialParams parameter to createOwnIsolate method.
  • Added initialParams getter to IsolateManagerController.
  • Bring to stable version.

0.1.0 #

  • Update example

0.0.1 #

  • Initial release
82
likes
0
pub points
91%
popularity

Publisher

verified publisherlamnhan.dev

A plugin that helps you create multiple isolates for a function, keep it active, and compute with it (Also supports Worker.js on Web).

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

isolate_contactor

More

Packages that depend on isolate_manager