khionu / async_pool Goto Github PK
View Code? Open in Web Editor NEWAn async collection in RustLang, intended for sharing a pool of a given resource
An async collection in RustLang, intended for sharing a pool of a given resource
Right now, because the implementation uses async channels, the sends are async and need awaiting. This should be able to be done synchronously for convenience.
Other pools have a way to signal that a resource is "broken" and a fresh connection is needed:
r2d2
: has_broken
bb8
: has_broken
tokio_resource_pool
: recycle
I believe this functionality can not be implemented on top of this crate's current API because there's no way to remove a resource from the pool, e.g. with a remove()
function or into_inner()
which would prevent the resource from being returned to the pool.
Right now, the implementation moves the whole value back and forth. While many resources are going to be collections of pointers in themselves, this is still less performant than it could be.
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.