Re: Aries Async Service and Timeouts

2019-01-29 Thread Timothy Ward
Hi Sebastian, Maybe some feature of Async that i missed? For the moment, no. The Aries Async project hasn’t had many calls for new functionality, and so it hasn’t been updated to support OSGi R7. The Promises support is mostly done, and with a day or two of effort I’m sure it would be back

Re: Aries Async Service and Timeouts

2019-01-25 Thread Raymond Auge
On Fri, Jan 25, 2019 at 10:15 AM Benjamin Edwards wrote: > I'd also suggest that blocking the thread either by polling in a loop or > using a dedicated timeout method is somewhat antithetical to the point of > an asynchronous call. Better usually to do something like resolve a promise > either

Re: Aries Async Service and Timeouts

2019-01-25 Thread Benjamin Edwards
I'd also suggest that blocking the thread either by polling in a loop or using a dedicated timeout method is somewhat antithetical to the point of an asynchronous call. Better usually to do something like resolve a promise either with the service result or an exception after a threshold. This

Re: Aries Async Service and Timeouts

2019-01-25 Thread Raymond Auge
I'm not sure if Aries Async uses the Promise API in a substitutable way, but the latest version of the Promise API has timeout methods [1]. Perhaps Tim Ward could shed some light on this? One option is simply to try to use the lastest Promise API along with Aries Async. Sincerely, - Ray [1]

Aries Async Service and Timeouts

2019-01-25 Thread Lorr, Sebastian
Hi there, I want to call a Service and wait for a given time for a response. So I did a async servicecall like this: // Create mediator, to call service asynchronously IMyService mediated = asyncService.mediate(myService, IMyService.class); // Call service and await promise to be