runOnDesktop

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

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

See also