API reference

ThreadUtility Class

A static class used for performing callbacks on the main thread

Static Methods

CallOnMainThread ( callback )
Safely calls an action on the main thread using a scheduler.
Signature
static Task Meta.WitAi.ThreadUtility.CallOnMainThread(Action callback)
Parameters
callback: Action  The action to be performed on the main thread
Returns
Task