Watcher

object Watcher
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

sealed abstract class Event

Event raised by Watcher. Supports standard events as well as arbitrary non-standard events (via NonStandard).

Event raised by Watcher. Supports standard events as well as arbitrary non-standard events (via NonStandard).

Companion
object
object Event
Companion
class
sealed abstract class EventType

Type of event raised by Watcher. Supports the standard events types as well as arbitrary non-standard types (via NonStandard).

Type of event raised by Watcher. Supports the standard events types as well as arbitrary non-standard types (via NonStandard).

Companion
object
object EventType
Companion
class

Value members

Concrete methods

def default[F[_]](implicit F: Async[F]): Resource[F, Watcher[F]]

Creates a watcher for the default file system.

Creates a watcher for the default file system.

def fromFileSystem[F[_]](fs: FileSystem)(implicit F: Async[F]): Resource[F, Watcher[F]]

Creates a watcher for the supplied file system.

Creates a watcher for the supplied file system.

def fromWatchService[F[_]](ws: WatchService)(implicit F: Async[F]): F[Watcher[F]]

Creates a watcher for the supplied NIO WatchService.

Creates a watcher for the supplied NIO WatchService.