Codename LogoCodename Logo

funkin.backend.utils.ThreadUtil

APIWiki

Static methods

View in GitHub

staticcreateSafe(func:() ‑> Void, autoRestart:Bool = false):Thread

Creates a new Thread with an error handler.

Parameters:

func

Function to execute

autoRestart

Whenever the thread should auto restart itself after crashing.