code: public static AsyncFile open(Executor executor, Path path, Set<OpenOption> openOptions) throws IOException {
  		FileChannel channel = doOpenChannel(path, openOptions);
  		return new AsyncFile(executor, channel, path, null);
  	}
docs: Opens file synchronously.
  
  @param executor    executor for running tasks in other thread
  @param path        the path of the file to open or create
  @param openOptions options specifying how the file is opened