API reference
API reference
Select your platform
No SDKs available
No versions available

ThreadUtility Class

A static class used for performing callbacks on the main thread

Static Member Functions

Compares current thread to main thread in order to determine location of running code.
Safely calls an action on the main thread using a scheduler.
Parameters
callback
The action to be performed on the main thread
Safely calls an action on the main thread using a scheduler.
Parameters
callback
The action to be performed on the main thread
Safely calls an action on the main thread using a scheduler.
Parameters
callback
The action to be performed on the main thread
Safely calls an action on the main thread using a scheduler.
Parameters
callback
The action to be performed on the main thread
Safely backgrounds an async task if threading is enabled in this build.
Parameters
logger
The logger that should be used for any unhandled exceptions
callback
The callback to execute
Safely backgrounds an async task if threading is enabled in this build.
Parameters
logger
The logger that should be used for any unhandled exceptions
callback
The callback to execute
Safely backgrounds a callback if threading is enabled in this build.
Parameters
logger
The logger that should be used for any unhandled exceptions
callback
The callback to execute
Allows yielding on a coroutine to await for a result from an async task
Parameters
func
result
Others
T
Returns
Allows yielding on a coroutine to await for a result from an async task
Parameters
func
result
Others
T
Returns
Allows yielding on a coroutine to await for a result from an async task
Parameters
func
data
result
Others
T
T1
Returns
Allows yielding on a coroutine to await for a result from an async task
Parameters
func
data
result
Others
T
T1
Returns
Allows yielding on a coroutine to await for a result from an async task
Parameters
func
data
result
Others
T
T1
Returns
Did you find this page helpful?
Thumbs up icon
Thumbs down icon