Re: [osgi-dev] Promises 1.1 Draft

2016-10-13 Thread Timothy Ward
Hi Simon, Sorry for the period of silence. I’m somewhat busy with a customer engagement, so not always able to respond as quickly as I’d like. > On 12 Oct 2016, at 13:21, Simon Chemouil wrote: > > Hi! > >> What you’ve described is how you would provide your own

Re: [osgi-dev] Promises 1.1 Draft

2016-10-12 Thread Simon Chemouil
Hi! > What you’ve described is how you would provide your own Promises > implementation (see also the Aries Promise > implementation: > https://github.com/apache/aries/tree/trunk/async/promise-api/src/main/java/org), > and could be what you choose to do. I would, however, consider > attempting

Re: [osgi-dev] Promises 1.1 Draft

2016-10-11 Thread Timothy Ward
> On 11 Oct 2016, at 15:18, Simon Chemouil wrote: > > Hey Timothy, > > Thanks for your answer! Final(?) comments inside :-) > > >> It sounds as though you’re making pretty heavy use of Promises, which is >> great to hear! I agree that an external method can be used to

Re: [osgi-dev] Promises 1.1 Draft

2016-10-11 Thread Timothy Ward
Hi Simon, It sounds as though you’re making pretty heavy use of Promises, which is great to hear! I agree that an external method can be used to provide timeouts, but the fact that users (including me) have felt it necessary to create the method indicates that it should probably be part of the

Re: [osgi-dev] Promises 1.1 Draft

2016-10-11 Thread Simon Chemouil
Hi Timothy, Thanks for your answer. Comments inlined. [snip] > occur if the provider of the promise is mis-coded, or simply if the > triggering event never occurs. Timing out is usually the right thing to > do in these situations, so adding a primitive for that to the Promise > was made a target

Re: [osgi-dev] Promises 1.1 Draft

2016-10-11 Thread Timothy Ward
Hi Simon, > On 11 Oct 2016, at 10:58, Simon Chemouil wrote: > > Hi, > > I had a look at the recently published Compendium R7 draft. > > I noticed the Promise interface has, among other changes, two new methods: > * public Promise timeout(long milliseconds) > * public

[osgi-dev] Promises 1.1 Draft

2016-10-11 Thread Simon Chemouil
Hi, I had a look at the recently published Compendium R7 draft. I noticed the Promise interface has, among other changes, two new methods: * public Promise timeout(long milliseconds) * public Promise delay(long milliseconds) (I somehow suppose these are also used by the new PushStream API) Is