Releases: d-markey/squadron
Releases · d-markey/squadron
v6.0.3
v5.1.3
Squadron 5.1.2
v5.1.2 Version
Squadron annotations: use squadron_builder to generate the boilerplate code
Now with annotations to support code generation. To be used with package squadron_builder
.
Version 4.0.0
- Breaking changes: all deprecated artefacts have been removed.
- Breaking change:
LocalSquadronLogger
has been deleted. - Breaking change: the
args
andtoken
arguments of methodssend()
andstream()
are now named argument. - Breaking change: removed the optional
id
parameter that was passed toWorker
constructors. - Breaking change: disabled message inspection for Web channels. In previous versions, Squadron would inspect each piece of data exchanged via
_JsChannel
s to identify objects whose ownership must be transfered to the receiving end (thetransfer
argument inpostMessage
). However most of the time, the request / response objects are usually made ofList
,Map
, and base types, all of which can cross thread boundaries "as-is". This behavior is now controlled by optional parametersinspectRequest
andinspectResponse
of methodsWorker.execute()
andWorker.stream()
, defaulting tofalse
thus disabling message inspection. Passingtrue
will activate message inspection for request and/or response and will be necessary when the message contains an object whose ownership must be transfered to the receiving end, typicaly aMessagePort
. Basic testing found message transfer time improvement around ~5-10% for large payloads, e.g. aList
containing manyMap
items (note that in Web scenarios, JSON serialization could prove a more efficient alternative). It should have little to no effect on smaller messages. Start requests will always be processed withinspectRequest = true
andinspectResponse = true
. - Fixed issue with workers on native platforms: ensure all
ReceivePorts
are closed uponIsolate
termination. - Support logging accross workers (which made
LocalSquadronLogger
obsolete). - Added support to reset the Squadron singleton.
- Reworked examples & unit tests.
Version 3.4
Version 3.4 with proper streaming capabilities.
Version 3.3.2
v3.3.2 Merge branch 'main' of https://github.com/d-markey/squadron