of

fun of(delay: Duration, count: Int): AccessWatcher

Creates a new AccessWatcher with the given delay and count.

Return

A new AccessWatcher.

Parameters

delay

The duration of time that if count calls are received within will result in a true result.

count

The amount of access calls required to return a true state.