Code Monkey home page Code Monkey logo

futures-batch's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

futures-batch's Issues

Upgrade to Tokio 0.2

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.

Rename project?

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.

tokio-timer only supports low resolution timer

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.

Implement `try_batch`

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.