T

NativeThreadPolicy

Where a native call runs: current is the calling thread; main blocks until the main thread runs it; main-post queues a void method on main and logs its failure, and blocks like main otherwise.

type NativeThreadPolicy = "current" | "main" | "main-post"