Internal
Function used to create formatted error message with the full debug information about exception in one of the threads.
java.lang.Throwable instance or javascript exception
thread name used to localize errors if there are any
current thread priority
function that formats the exception itself
Gets thread by it's name.
name of the thread
Instance representing the thread.
Creates and runs new thread with specified function as a task.
thread name used to localize errors if there are any
function that runs in the new thread. Usually it is some time-consuming task, that is executed in the new thread to avoid blocking user interfaces
Optional
priority: numberpriority of the thread (integer value). The higher priority is, the quicker the task will be executed. Default value is 0
Optional
isErrorFatal: booleanif true
, all errors in the thread are considered
fatal and lead to fatal error AlertDialog, formatted with formatFunc
Optional
formatFunc: ErrorMessageFormatFunctionfunction that formats exceptions in the thread to display in fatal error AlertDialog
Instance representing created thread.
Const
Internal
threadsRunning threads, use Threading.getThread to directly access required thread by name.
Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.
Module used to create and manipulate threads. Threads let you execute time-consuming tasks without blocking current execution thread.