EventDefinition

Deprecated (with error)

EventDefinition<T> has been moved to io.ktor.events

Replace with

import io.ktor.events.EventDefinition
EventDefinition<T>

Definition of an event. Event is used as a key so both hashCode and equals need to be implemented properly. Inheriting of this class is an experimental plugin. Instantiate directly if inheritance not necessary.

Parameters

T

specifies what is a type of a value passed to the event