mre / futures-batch Goto Github PK
View Code? Open in Web Editor NEWAn adapter for futures, which chunks up elements and flushes them after a timeout — or when the buffer is full. (Formerly known as tokio-batch.)
License: Apache License 2.0
An adapter for futures, which chunks up elements and flushes them after a timeout — or when the buffer is full. (Formerly known as tokio-batch.)
License: Apache License 2.0
In #10 we try to move to Tokio 0.2.
Unfortunately, a lot has changed and the update requires some effort.
Mainly, the unit tests need fixing because tokio::run
is no longer part of Tokio.
Instead, it's tokio::test
now. See here for more info.
If someone wants to take over, that would be a great opportunity to start with async Rust and Tokio.
The Rust async ecosystem is moving fast and this crate no longer depends on Tokio.
The only dependency we have is on Stream
from the futures
crate.
I was wondering if we should reflect that in the project name.
The two names that I favor at the moment are futures-batch
and async-batch
with a slight tendency towards futures-batch
. I considered stream-batch
, but it doesn't have the same ring to it.
Would be interested in getting your opinions @doyoubi, @leshow, @spebern, and @wngr.
Hi,
Great lib for batching!!
Just a small problem.
The resolution of tokio-timer
is too low. The smallest duration is 1 millisecond.
When batching syscall, we need to use a higher resolution timer.
futures-timer
fits the needs but it requires changing the type of the Error returned.
Maybe you can consider moving from tokio-timer
to futures-timer
.
Hi,
Could you push the newest version to crates.io?
Thanks in advance!
futures::stream::TryStreamExt
has a try_chunks
method that batches Ok
values and immediately propagates any Err
values. I believe it would be very useful to have something like that in this library.
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.