2

2つの方法の違いは何ですか? どちらの場合、一方を他方よりも使用する必要がありますか?

/**
 * Wait for the asynchronous operation to complete with the specified timeout.
 *
 * @return <tt>true</tt> if the operation is completed.
 */
boolean await(long timeoutMillis) throws InterruptedException;

/**
 * Wait for the asynchronous operation to complete with the specified timeout
 * uninterruptibly.
 *
 * @return <tt>true</tt> if the operation is finished.
 */
boolean awaitUninterruptibly(long timeoutMillis);
4

0 に答える 0