purescript-contrib / purescript-concurrent-queues Goto Github PK
View Code? Open in Web Editor NEWAn unbounded and bounded queue for concurrent access.
License: Apache License 2.0
An unbounded and bounded queue for concurrent access.
License: Apache License 2.0
Is your change request related to a problem? Please describe.
As described in the documentation section of the Library Guidelines, Contributors libraries are expected to have in their README a short summary of the library's purpose, installation instructions, a quick start with a minimal usage example, and links to the documentation and contributing guide.
This library currently doesn't have a quick start in the README.
Describe the solution you'd like
The library needs a quick start section after the installation instructions. machines is one example of a library with a quick start.
Additional context
See the Governance repository for more information about requirements in the Contributors organization.
Is your change request related to a problem? Please describe.
As described in the documentation section of the Library Guidelines, Contributors libraries are expected to have some documentation in the docs directory -- specifically, a changelog and at least a short tutorial that expands on the quick start in the README.
This library currently doesn't have an up to date changelog or any extra documentation in the docs directory.
Describe the solution you'd like
The argonaut-codecs docs directory has a good example of expanded documentation for a Contributor library. But it would even be useful to add something considerably smaller and shorter to this library.
Additional context
See the Governance repository for more information about requirements in the Contributors organization.
There are several cases where deadlocks will occur if a Queue is used in any Fiber which is killed (ParAff is a common scenario).
read ∷ ∀ a. Queue a → Aff a
read (Queue q) = do
readEnd ← AVar.take q.readEnd
// Kill here leaves readEnd empty
QItem a newRead ← AVar.read readEnd
AVar.put newRead q.readEnd
pure a
Invincibility is not a solution because that will lead to external deadlock problems. I have been long down this road with Aff, and even patched the library to fix a critical temporal issue that will also be at play here. When I am able to share the fix I will.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.