expireAfter

fun expireAfter(seconds: Long): EventBuilder<T>

Automatically unregisters the listener after a specified number of seconds.

Parameters

seconds

The duration in seconds.