
12 Feb
2004
12 Feb
'04
5:17 p.m.
Peter Dimov wrote: [...]
The main danger I see is not when join() throws an "unexpected" exception ...
Actually, join() and result() should be separate operations. First, join() can probably fail with an exception, and second, in a thread group we'd like to be able to first join all threads and then examine the results one by one. result() can still automatically join() if necessary, but a separate join() needs to be present.