thread 0.2.2
thread: ^0.2.2 copied to clipboard
A simple Isolated Thread wrapped with a type-safe Event Emitter for easier asynchronous communication. Setup events for the thread to reply to, or compute tasks individually.
0.2.2 #
Minor BREAKING CHANGES:
The file structure was reorganized, might cause some issues with imports
Added:
.initializedaccessor, to check if the thread is initialized, meaning alive and ready to emit and receive events
Fixed:
0.2.1 #
Fixed:
- Thread
.emit()data is optional, updated because ofevents_emitterdependency
0.2.0 #
BREAKING CHANGES:
The Thread was partially refactored, and updated to use the new version of the
events_emitterdependency. Although it's essentially the same, be aware the way events work might have changed, depending on your case.Changes:
[!]
Added:
pauseandresumemethods, to allow pausing and resuming the execution of the thread. This is the same as doingthread.isolate.pause().untilAlivemethod, to wait until the thread is aliveThread.ComputeandThread.ComputeWithmethods, to create a temporary thread, execute a single task on it and return the resultlintdeveloper dependency
[!] Changed:
- Thread property
eventHandleris private - Thread property
receivePortis internal - Renamed Thread property
emittertoevents, it's an easier term to understand - Renamed Thread property
runningtoalive, it's more accurate to what represents - Renamed ThreadComputeRequest property
callbacktocomputation - Renamed file
schemas.darttoothers.dart - ChangeLog's format
- Improved documentation
Fixed:
thread.stop()and thenthread.start()would cause an exception for reusing the same ReceivePort- Basic lint errors
[!] Removed:
keepEmitsWhileNotRunningfrom Thread class, now it always preserves the emits
0.1.2 #
Fixed:
events_emitternow returns a listener instead of a subscription
0.1.1 #
Changed:
events_emitterandasync_signaldependency versions to lastest
0.1.0 #
Added:
shields.iobadges in documentation Removed:flutterfrom package dependency
0.0.3 #
Changed:
- Optional
eventEmitterin Thread
Fixed:
- Wrong event
type, in some cases
0.0.2 #
Changed:
- Renamed IsolatedThread class to Thread
0.0.1 #
Initial release: Thread