asyncChannel

Opens the file at this Path with the specified options and returns an AsynchronousFileChannel to it.

Return

The AsynchronousFileChannel associated with the file.

Example usage:

val filePath: Path = ...
val channel = filePath.asyncChannel(StandardOpenOption.READ)

Parameters

options

The options specifying how the file is opened.