{"id":41846,"date":"2024-01-23T15:19:35","date_gmt":"2024-01-23T20:19:35","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=41846"},"modified":"2024-01-23T15:19:35","modified_gmt":"2024-01-23T20:19:35","slug":"swiftui-main-thread-hang-detector","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2024\/01\/23\/swiftui-main-thread-hang-detector\/","title":{"rendered":"SwiftUI Main Thread Hang Detector"},"content":{"rendered":"<p><a href=\"https:\/\/wadetregaskis.com\/swiftui-main-thread-hang-detector\/\">Wade Tregaskis<\/a>:<\/p>\n<blockquote cite=\"https:\/\/wadetregaskis.com\/swiftui-main-thread-hang-detector\/\">\n<p>This is just a little snippet that is quite useful for reporting when your GUI thread (the main thread \/ actor) hangs for a significant amount of time. There are numerous heavier-weight tools for analysing this sort of thing, but I&rsquo;ve found that this simple monitor does what I need most of the time.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Wade Tregaskis: This is just a little snippet that is quite useful for reporting when your GUI thread (the main thread \/ actor) hangs for a significant amount of time. There are numerous heavier-weight tools for analysing this sort of thing, but I&rsquo;ve found that this simple monitor does what I need most of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2024-01-23T20:19:38Z","apple_news_api_id":"7310f473-8fe3-476e-9d56-7a4a0c1819ed","apple_news_api_modified_at":"2024-01-23T20:19:38Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AcxD0c4_jR26dVnpKDBgZ7Q","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[800,31,2321,30,2385,74,71,2200],"class_list":["post-41846","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-concurrency","tag-ios","tag-ios-17","tag-mac","tag-macos-14-sonoma","tag-opensource","tag-programming","tag-swift-concurrency"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/41846","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=41846"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/41846\/revisions"}],"predecessor-version":[{"id":41847,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/41846\/revisions\/41847"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=41846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=41846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=41846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}