add

abstract fun add(action: Runnable)

Add an action to the handlers that will be run when the JVM exits.

Parameters

action

the action to add