Hi,
Is there a common pattern to implement Mojo calls that also send back progress reports in addition to delivering the final result?
I initially considerer something like:
interface MyService {
LenthyAction(pending_remote<ProgressReport> report) -> (SomeResult result);
};
interface ProgressReport {
Progress(float percent);
};
But then it turned out especially with disconnect handling etc it was easier to implement an alternative like:
interface MyService {
LenthyAction(pending_remote<ResultReporter> report);
};
interface
ResultReporter {
Progress(float percent);
FinalResult(SomeResult result);
};
That is, make everything just asynchronous messages.
Also, are such cases good candidadtes to use associative remotes/receivers ? Or there would be no performance difference in practice?
Regards, Igor