runOnHeadless

inline fun <T> runOnHeadless(action: () -> T?): T?

Executes action if the currentPlatform is ApplicationType.HeadlessDesktop. Returns action result or null.

See also