class DirectoryWatch
source · line 10public
public class DirectoryWatch private constructor(private val root: Path) : Closeable
- Supertype
Closeable - Inherited
fun dispose(): Unit· Closeable
A directory tree subscription. Close from any thread to wake the pending reader.
property isClosed
source · line 45public
public val isClosed: Boolean
get: public read-only
True once this subscription has started closing.
getter get
source · line 46public
get(): Boolean
function close
source · line 81public
public override fun close(): Unit
- Overrides
close
Stops delivery, discards queued batches and waits for callbacks already in progress.
function nextBatch
source · line 53public
public fun nextBatch(): Array<DirectoryEvent>?
Waits for the next batch. A competing reader throws; a closed subscription returns None.