Skip to content

v0.7.0

Compare
Choose a tag to compare
@QSmally QSmally released this 14 Apr 13:34
· 45 commits to master since this release

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.