Method SwitchToMainThread
SwitchToMainThread()
Safely returns to a NWScript context from another thread.
This must ALWAYS be called after an external callback, or thread switch before using any NWN APIs.
[Pure]
public static IAwaitable SwitchToMainThread()