isSingleInstance

fun isSingleInstance(onRestoreFileCreated: Path.() -> Unit? = null, onRestoreRequest: Path.() -> 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.