SafeCall

object SafeCall

Catching all exceptions thrown while executing the provided task.

Functions

Link copied to clipboard
fun <T> execute(task: () -> T): T?

Executes the task. Catches any exception, if thrown, and prints the stacktrace.