Skip to content

Commit

Permalink
feat: expose task interface (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
metcoder95 authored May 31, 2024
1 parent 327d3a7 commit 285aa82
Show file tree
Hide file tree
Showing 14 changed files with 466 additions and 428 deletions.
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [4.5.2](https://github.com/piscinajs/piscina/compare/v4.5.1...v4.5.2) (2024-05-22)

### [4.5.1](https://github.com/piscinajs/piscina/compare/v4.5.0...v4.5.1) (2024-05-22)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions src/errors.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const Errors = {
ThreadTermination: () => new Error('Terminating worker thread'),
FilenameNotProvided: () =>
new Error('filename must be provided to run() or in options object'),
TaskQueueAtLimit: () => new Error('Task queue is at limit'),
NoTaskQueueAvailable: () =>
new Error('No task queue available and all Workers are busy'),
CloseTimeout: () => new Error('Close operation timed out')
};
Loading

0 comments on commit 285aa82

Please sign in to comment.