Comments (2)
The two ways in which we could cancel are
- We could cancel pending tasks by just not executing them (this is easy)
- We could cancel active tasks by terminating the Worker that they are running on, but that only works well when
concurrentTasksPerWorker
has its default value of 1
Another question, what kind of API would we want here? Something like AbortController
/AbortSignal
or something custom?
from piscina.
Something like AbortController/AbortSignal I think makes the most sense I think... and we'd need to be clear that the semantics are Best Effort.
from piscina.
Related Issues (20)
- Any means to share memory from parent towards and among threads HOT 7
- Worker not found after building via webpack
- Attempting to understand the `Transferable` interface HOT 1
- AbortError exception doesn't contain signal.reason
- Version 3.3.0 on NPM HOT 1
- BigNumber loses it's typing, becomes an object HOT 2
- Share JS Object in memory amongst different threads HOT 8
- How to make piscina bidirectional? (from parent to worker) HOT 1
- Doesn't catch process.exit() in the worker thread HOT 1
- feat: allow to reset histograms HOT 1
- Unawaited promises behavior HOT 3
- unbalanced assigning jobs to workers when concurrentTasksPerWorker > 1 HOT 2
- Memory leak on worker run HOT 1
- child thread may never end HOT 3
- clarification: why use large maxQueue for optimal performance? HOT 3
- throw error with histogram HOT 1
- 20% slowdown versus workerFarm
- The asynchronous code send by `Runtime.evaluate` can not be executed in worker threads HOT 7
- Limit max number of threads according to the machine. HOT 6
- a large value of maxThread drops the script without any information HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from piscina.