{"id":36404,"date":"2022-07-01T16:05:43","date_gmt":"2022-07-01T20:05:43","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=36404"},"modified":"2022-07-01T16:05:43","modified_gmt":"2022-07-01T20:05:43","slug":"concurrencyplus","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/07\/01\/concurrencyplus\/","title":{"rendered":"ConcurrencyPlus"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/ChimeHQ\/ConcurrencyPlus\">Chime<\/a> (via <a href=\"https:\/\/twitter.com\/mattie\/status\/1542501104910565377\">Matt Massicotte<\/a>):<\/p>\n<blockquote cite=\"https:\/\/github.com\/ChimeHQ\/ConcurrencyPlus\">\n<p><code>TaskQueue<\/code><\/p>\n<p>Conceptually similar to a serial <code>DispatchQueue<\/code>, but can accept async blocks. Unlike with an unstructured <code>Task<\/code>, this makes it possible to control the ordering of events.<\/p>\n<p>[&#8230;]<\/p>\n<p><code>CancellingContinuation<\/code><\/p>\n<p>Just like a <code>CheckedContinuation<\/code>, but will automatically resume by throwing if it is deallocated without being resumed manually. This is useful for situations where you cannot guarantee that a closure will be called. An example of such a situation is an XPC call.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Chime (via Matt Massicotte): TaskQueue Conceptually similar to a serial DispatchQueue, but can accept async blocks. Unlike with an unstructured Task, this makes it possible to control the ordering of events. [&#8230;] CancellingContinuation Just like a CheckedContinuation, but will automatically resume by throwing if it is deallocated without being resumed manually. This is useful for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2022-07-01T20:05:45Z","apple_news_api_id":"55b26843-a61e-4636-b3d2-1b3efe7b3cfc","apple_news_api_modified_at":"2022-07-01T20:05:45Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AVbJoQ6YeRjaz0hs-_ns8_A","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,2078,30,2077,74,71,2200,901,1473],"class_list":["post-36404","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-concurrency","tag-ios","tag-ios-15","tag-mac","tag-macos-12","tag-opensource","tag-programming","tag-swift-concurrency","tag-swift-programming-language","tag-xpc"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36404","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=36404"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36404\/revisions"}],"predecessor-version":[{"id":36405,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36404\/revisions\/36405"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=36404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=36404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=36404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}