FlashcardAdvanced

Threading in Native Modules: Main Queue vs Background

Native module methods run on a background queue by default, so UI work must be explicitly dispatched to the main thread.

Question

Which thread do native module methods run on, and when must you switch threads?

Click to reveal answer