v0.7.0
This release drafts a new version of DispatchQueue.
Fixes
- Fixes and consistency patches in documentation.
Logs
DispatchQueue can now accept a logs
boolean in the configuration object. Spawn (in DispatchThread's default onSpawn
method) and termination messages are affected by this setting. To access this parameter in a DispatchThread, the logs
property is available in the this.dataContext
object.
const dispatch = new DispatchQueue("path/to/worker.js", {
logs: true // defaults to `false`.
});
AutomaticRejectionTime
The default value for DispatchThread's static automaticRejectionTime
property has been changed to 300 milliseconds. For thread safety, Infinity
(the previous default value) is not recommended.