Code Monkey home page Code Monkey logo

Comments (5)

saturnism avatar saturnism commented on May 8, 2024

@oravecz how would wait behave? Are you wanting to wait until all of the async executions were completed?
what is the desired behavior for the timeout? When timeout occurs, should the async executions be terminated? or simply unblock?

thanks!

from jdeferred.

oravecz avatar oravecz commented on May 8, 2024

Yes, exactly. Wait until all async executions are completed. On timeout, async executions are moot, so either unblock or terminated would be valid behavior. If I had to pick one, I would say unblock.

from jdeferred.

saturnism avatar saturnism commented on May 8, 2024

@oravecz i'm just starting to take a look at this... i think it might be doable. currently, if you do when(p1, p2, p3).done(...), done is only called iif p1, p2, and p3 all have completed... a wait() method might be able to listen to this.

from jdeferred.

saturnism avatar saturnism commented on May 8, 2024

@oravecz check it out to see if this is useful for you.

https://github.com/jdeferred/jdeferred/blob/master/core/src/test/java/org/jdeferred/impl/SinglePromiseTest.java#L272
https://github.com/jdeferred/jdeferred/blob/master/core/src/test/java/org/jdeferred/impl/MultiplePromisesTest.java#L368

from jdeferred.

saturnism avatar saturnism commented on May 8, 2024

Updated sample documentation.

from jdeferred.

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.