Skip to content

Releases: QSmally/DispatchQueue

v0.7.6

28 Jun 17:30
Compare
Choose a tag to compare

This release drafts a patch version of DispatchQueue.

Fixes

  • Fixes consistency of class names like DispatchController and DispatchThreadController;
  • Fixes missing logs configuration property in DispatchGroup.

Improvements

  • Add communication timing tests/ benchmark.

v0.7.5

19 Jun 11:17
Compare
Choose a tag to compare

This release drafts a patch version of DispatchQueue.

Fixes

  • Fixes example documentation in DispatchThread constructor;
  • Fixes spawning threads early when scaling with lazyInitialisation enabled.

Improvements

  • Add latency tests/ benchmark.

v0.7.4

07 Jun 19:12
Compare
Choose a tag to compare

This release drafts a patch version of DispatchQueue.

Fixes

  • Fixes and consistency patches in documentation.

Improvements

  • Internal refactor and code grouping;
  • Rename <DispatchQueue>.threadController to <DispatchQueue>.delegate.

v0.7.3

12 May 18:47
Compare
Choose a tag to compare

This release drafts a patch version of DispatchQueue.

Fixes

  • Fixes stdout method target for debug outputs from logs configuration;
  • Fixes and consistency patches in documentation;
  • Fixes showing additional exit information on code ≠ 0.

Improvements

  • Prepare refactor by renaming ThreadController class to DispatchController;
  • Mark DispatchThread's response state as private to avoid task desync.

v0.7.2

05 May 16:18
Compare
Choose a tag to compare

This release drafts a patch version of DispatchQueue.

Fixes

  • Remove unnecessary async keyword for the task() method;
  • Mark DispatchThread state properties as private.

v0.7.1

15 Apr 09:47
Compare
Choose a tag to compare

This release drafts a patch version of DispatchQueue.

Fixes

  • Fixes and consistency patches in documentation;
  • Patch not passing through the logs parameter to DispatchThread.

v0.7.0

14 Apr 13:34
Compare
Choose a tag to compare

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.

v0.6.3

27 Oct 20:25
Compare
Choose a tag to compare

This release drafts a patch version of DispatchQueue.

Fixes

  • Patch thread timer in synchronous tasks by executing task the next event loop cycle.

v0.6.2

12 Oct 16:00
Compare
Choose a tag to compare

This release drafts a patch version of DispatchQueue.

Fixes

  • Patch a very likely memory leak when scaling down a taskless thread.

v0.6.1

08 Oct 19:12
Compare
Choose a tag to compare

This release drafts a patch version of DispatchQueue.

Fixes

  • Fixes and consistency patches in documentation.

Improvements

  • Move location of dataContext into DispatchQueue;
  • Patch unit tests to include additional debugging information;
  • Type definition for the Pathlike reference.