isolate_manager 4.1.5+1
isolate_manager: ^4.1.5+1 copied to clipboard
An easy way to create multiple isolates for a function, also keep it active to send and receive data multiple times (also supports Worker on Web).
4.1.5+1 #
- Improved README.
4.1.5 #
- Add
fetchAndDecodeexample. - Update README to
fetchAndDecode.
4.1.4 #
- Add more complex examples (also for
Worker).
4.1.3 #
- Add example for
Worker. - Update README.
4.1.2 #
- Update homepage URL.
4.1.1 #
- Add
queuesLengthto get the number of the current queuing elements. - Add
ensureStartedto able to wait for thestartmethod to finish when you want to call thestartmethod manually withoutawaitand wait for it later. - Add
isStartedto check if thestartmethod is completed or not.
4.1.0 #
- Add
callbackparameter tocomputemethod to fully control the final result (Useful when you need to send something like the progress value before sending the final result in the samecompute). - Mark
isolateManager.onMessageas deprecated. - Add example that uses
callbackparameter to build a progress bar before getting the final result.
4.0.0 #
- Add
sendResultErrortoIsolateManagerControllerto make it easier to send the Exception from the Isolate to main app. IsolateExceptionparameters are nowObjectandStackTrace.- Add parameter type as
Pand change return type toR. - Add return type as
voidtoonDisposemethod. - Change
isolateParamsfrom dynamic toObject?. - Update tests.
- Update example.
3.0.1 #
- [Fixes]: The
computemethod will be failed if user tap on a button that calling it multiple times continuously. - Improves tests.
3.0.0 #
- Bumped Dart sdk to
>=2.18.0 <4.0.0.
2.2.0+5 #
- Add
isolates_helperto README.
2.2.0+4 #
- Improves README.
- Add
IsolateManager.debugLogPrefixto set the prefix debug logs.
2.2.0+2 #
- Improve
worker.dartimports. - Use new
worker.dartin testing.
2.2.0+1 #
- Improve function descriptions.
- Improve README for catching exception with
createOwnIsolate.
2.2.0 #
- Support
try-catchblock for all platforms including Worker on Web. - Update
worker.dartto supporttry-catchblock. - 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.computefor the first time, so you have 3 way to create the instance:- Basic usage:
IsolateManager<int> isolateManager = IsolateManager.create( fibonacci, concurrent: 4, ); await isolateManager.start();- Use
startwithoutawait:
IsolateManager<int> isolateManager = IsolateManager.create( fibonacci, concurrent: 4, ); isolateManager.start();- Use
startwhen 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
numOfIsolatestoconcurrent. - Update dependencies.
2.0.2+3 #
- Improve README.
2.0.2+2 #
- Changes the name from
function_nametoworker. - Improves
worker.dartform. - Improves README.
2.0.2 #
- Fixes issue in
restartandstopmethods.
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.dartto make it works withFutureOrfunction. - Add
function_name.jsto example and create example for it.
2.0.1 #
- Remove useless
awaitin README. - Downgrade Dart SDK min version to
2.12.0.
2.0.0 #
- NO BREAKING CHANGE
- Add
Workerfor Web platform (real Isolate on Web). Read README for more details.
1.0.0+1 #
- Update README
1.0.0 #
- BREAKING CHANGE: Change
isolateFunctionparameter ofcreateOwnIsolatemethod from named to required parameter. - Added
initialParamsparameter tocreateOwnIsolatemethod. - Added
initialParamsgetter toIsolateManagerController. - Bring to stable version.
0.1.0 #
- Update example
0.0.1 #
- Initial release