W
Wolfgang
For diagnostic purposes I'm looking for a way to wait for the
completion of some asynchronous method. For example
//Do something here.
// Then do something asynchronous, that normally goes off in it's own
thread, e.g.:
Graphics.drawImage(...);
// or some other other asynchronous method whatever.
// Now I want to wait until the asynchronous method returns, before I
continue with the main thread of my program.
I understand the value of threading, but in some debugging scenarios
I'd rather be synchronous -- temporarily.
I know there are specialized tools for special cases, such as
MediaTracker. But isn't there a more general solution for this, for
all those cases that don't have special waiting tools?
Thanks for any help.
Wolfgang
completion of some asynchronous method. For example
//Do something here.
// Then do something asynchronous, that normally goes off in it's own
thread, e.g.:
Graphics.drawImage(...);
// or some other other asynchronous method whatever.
// Now I want to wait until the asynchronous method returns, before I
continue with the main thread of my program.
I understand the value of threading, but in some debugging scenarios
I'd rather be synchronous -- temporarily.
I know there are specialized tools for special cases, such as
MediaTracker. But isn't there a more general solution for this, for
all those cases that don't have special waiting tools?
Thanks for any help.
Wolfgang