{"id":51702,"date":"2026-04-23T08:00:20","date_gmt":"2026-04-23T12:00:20","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=51702"},"modified":"2026-04-23T08:00:20","modified_gmt":"2026-04-23T12:00:20","slug":"whats-that-structured-in-structured-concurrency","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2026\/04\/23\/whats-that-structured-in-structured-concurrency\/","title":{"rendered":"What&rsquo;s That &ldquo;Structured&rdquo; in Structured Concurrency?"},"content":{"rendered":"<p><a href=\"https:\/\/macguru.dev\/whats-that-structured-in-structured-concurrency\/\">Max Seelemann<\/a>:<\/p>\n<blockquote cite=\"https:\/\/macguru.dev\/whats-that-structured-in-structured-concurrency\/\">\n<p>There are only three ways to create a concurrently running operation from the standard library, <code>Task<\/code> being the first. The other two are <code>async let<\/code> and <code>TaskGroup<\/code>s &mdash; which happen to be the <em>structured<\/em> ones.<\/p>\n<p>[&#8230;]<\/p>\n<p>In my words, it&rsquo;s a direct, inescapable dependency relationship. You can always start a task and forget about it &#x2013; not structured. But when you do an <code>async let<\/code>, you need to <code>await<\/code> the result before the function ends (or discard it, see below). Likewise, task groups can only be created through <code>with(Throwing)TaskGroup<\/code>, which forces the caller to await their completion.<\/p>\n<\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2025\/10\/14\/cultivated-task-cancellation\/\">Cultivated Task Cancellation<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Max Seelemann: There are only three ways to create a concurrently running operation from the standard library, Task being the first. The other two are async let and TaskGroups &mdash; which happen to be the structured ones. [&#8230;] In my words, it&rsquo;s a direct, inescapable dependency relationship. You can always start a task and forget [&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":"2026-04-23T12:00:23Z","apple_news_api_id":"49a7bd6e-753f-47c7-b844-d8a886f154c8","apple_news_api_modified_at":"2026-04-23T12:00:23Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/ASae9bnU_R8e4RNiohvFUyA","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":[31,2741,30,2742,71,2200,901],"class_list":["post-51702","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-ios","tag-ios-26","tag-mac","tag-macos-tahoe-26","tag-programming","tag-swift-concurrency","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/51702","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=51702"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/51702\/revisions"}],"predecessor-version":[{"id":51703,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/51702\/revisions\/51703"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=51702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=51702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=51702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}