Close Keys: SelectionKeys? You donβt have to do anything. Closing a channel automatically cancels all of its SelectionKeys. And if you do not have pending data that needs to be cleared, you also do not need to close the channels, the OS will do it for you.
source
share