expireCount

abstract fun expireCount(count: Int): EventListener.Builder<T>

Sets the number of times the listener can be ran before it is considered expired, and will not run anymore.

Return

this builder

Parameters

count

the amount of times the listener can be ran before it expires