isSingleInstance

fun isSingleInstance(onRestoreFileCreated: <Error class: unknown class>.() -> Unit? = null, onRestoreRequest: <Error class: unknown class>.() -> Unit): Boolean

Checks if the current process is the single running instance.

Parameters

onRestoreRequest

A function to be executed if a restore request is received from another instance.