Comments (5)
@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.
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.
@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.
@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.
Updated sample documentation.
from jdeferred.
Related Issues (20)
- Thorough check on nullable/non-nullable arguments HOT 7
- DeferredPromise can be simplified by extending DelegatingPromise HOT 1
- Doc points to core for Maven but Android for Gradle
- Configure auto-module on JAR Manifest
- Improve code formatting, compiler warnings and JavaDoc HOT 2
- Is there a need for an AlwaysPipe? HOT 3
- Substantiating return type for promise.then(DoneFilter) and promise.then(DoneFilter, FailFilter) HOT 4
- For JDeferred 2, update artifact and package names HOT 2
- Handle Android Lifecycle HOT 2
- Configure bintray plugin to automatically publish to Maven Central
- Promise.then() is difficult to use with lambdas HOT 5
- Automatically publish README.md to jdeferred.org
- DonePipe cannot be use when() together HOT 2
- await function HOT 3
- it doesn't work under app bundle HOT 1
- Notifications Can Be Lost HOT 2
- add extend serialize for DoneCallback etc
- Migrating from org.jdeferred 1.2.6 to 2.0.0
- Never call done when proguard enforcing HOT 3
- CONTRIBUYENTES HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jdeferred.