handleOnce

abstract fun handleOnce(channel: String, listener: Function<Any?>)(source)

Handles a single invokeable IPC message, then removes the listener. See ipcMain.handle(channel, listener).