Table of Contents

Method SwitchToMainThread

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

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()

Returns

IAwaitable