< prev index next >

src/java.base/share/classes/java/nio/channels/spi/AbstractSelector.java

Print this page

        

*** 43,53 **** * after, respectively, invoking an I/O operation that might block * indefinitely. In order to ensure that the {@link #end end} method is always * invoked, these methods should be used within a * {@code try}&nbsp;...&nbsp;{@code finally} block: * ! * <blockquote><pre> * try { * begin(); * // Perform blocking I/O operation here * ... * } finally { --- 43,53 ---- * after, respectively, invoking an I/O operation that might block * indefinitely. In order to ensure that the {@link #end end} method is always * invoked, these methods should be used within a * {@code try}&nbsp;...&nbsp;{@code finally} block: * ! * <blockquote><pre id="be"> * try { * begin(); * // Perform blocking I/O operation here * ... * } finally {
< prev index next >