Priority

internal sealed interface Priority

Common contract for internal handler descriptors that participate in priority-based dispatch.

Both event handlers and exception handlers implement Priority so they can be sorted and executed according to their relative importance. Higher priority values indicate that a handler should run earlier than those with lower values.

This interface is internal to the event system and is not exposed through the public API.

Inheritors

Properties

Link copied to clipboard
abstract val priority: Int

execution ordering hint; larger values are dispatched first.