@Override
    public void cancel() {
      valid.set(false);
      watcher.cancelled(this);
    }
Sets the state to SIGNALLED and enqueues this key with the watcher if it was previously in
the READY state.
jimfs/src/main/java/com/google/common/jimfs/AbstractWatchService.java