One of the patterns used with asynchronous delegates is also a Callback pattern, where initial thread ( one that called BeginInvoke ) T1 continues without waiting or checking whether the spawned thread T2 has completed. Instead, when T2 has completed, the T2 calls callback method, which handles the results, calls EndInvoke and informs the T1 that the task is finished.
a) If callback method is supposed to inform T1 when the task is finished, then why isn’t this callback method called inside T1 and not T2?
2) Is there some standard pattern how callback method should inform T1 that T2 has finished?
3) Should Callback pattern be used even when T1 needs to receive the returned value of asynchronously called method?
thanx