Thread

  • Crash if the current thread is not the main (UI) thread.

    Declaration

    Swift

    public static func assertIsInMainThread()
  • Crash if the current thread is the main (UI) thread.

    Declaration

    Swift

    public static func assertIsInBackgroundThread()