Watcher

An ongoing watch operation.

interface Watcher

Functions

cancel
Link copied to clipboard

Immediately stop. Repeated invocations have no effect.

abstract fun cancel()
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
plus
Link copied to clipboard

Combine two Watcher objects, returning a single one that spans both.

open operator fun plus(other: Watcher): Watcher
start
Link copied to clipboard

Return when the watcher has become effective.

abstract suspend fun start()
stop
Link copied to clipboard

Gracefully stop, suspending if necessary to allow outstanding operations to complete. Repeated invocations have no effect.

abstract suspend fun stop()
toString
Link copied to clipboard
open override fun toString(): String

Extensions

toHold
Link copied to clipboard

Return a Hold form of this Watcher.

fun Watcher.toHold(): Hold