Pergunta

I got two applications communicating via IPCChannel. I call a method(specifically a property.get) that returns a list of 80+ objects, each containing another 500-1000 objects. This call takes about 40-60 seconds to complete. Is there a way to determine the estimated remaining time in order to give the user some feedback - apart from splitting up the list and fetching the objects one by one (which would make it possible to compute the remaining time myself)?

Foi útil?

Solução

Splitting the communication up into smaller pieces is actually a pretty good way to solve this problem.

You need to have an initial handshaking communication to establish how many pieces are to be used, but then you can give an accurate estimate of the time to go. Make sure that you don't break it up into pieces that are so small that the communication overhead degrades performance.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top