Coder Social home page Coder Social logo

Comments (4)

ktoso avatar ktoso commented on June 24, 2024

Thanks for the feedback Rich,
the use case would be like an FromFuturePublisher, so it only can send up to 1 element, right?

We'll try to figure something out, may be easy enough to integrate your request.

from reactive-streams-jvm.

richdougherty avatar richdougherty commented on June 24, 2024

Yes, my use case is single-element publishers and consumers made by wrapping Scala's futures and promises. I can also imagine zero-element versions of publishers and consumers (Publisher.empty, Consumer.empty) and versions of publishers and consumers that can only handle finite lengths (Publisher.fromArray, Consumer.toArray).

from reactive-streams-jvm.

ktoso avatar ktoso commented on June 24, 2024

So my current suggestion would be (as seen in PR #91):

  @Override 
  public long maxElementsFromPublisher() { return 1; }

Which skips all tests which require more than 1 element to run (so currently, most of them: Total tests run: 18, Failures: 0, Skips: 13 (publisher specs)). The skip message includes this as the reason. Opinions about this way of exposing publisher capabilities?

from reactive-streams-jvm.

viktorklang avatar viktorklang commented on June 24, 2024

Looks like it was solved to me. Closing.

from reactive-streams-jvm.

Related Issues (20)

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.