BusyHandler

fun interface BusyHandler(source)

Callback to use with DatabaseConnection.setBusyHandler.

Functions

Link copied to clipboard
abstract fun apply(count: Int): Int

Called each time an attempt to access a locked table fails. count is the number of times this callback has been invoked for the current locking event, starting at 0. Returning 0 stops the retries and lets the failing call return immediately, any other value causes it to retry.