Matt Massicotte on Nostr: I've had a hard time writing things that help people get started with concurrency. I ...
I've had a hard time writing things that help people get started with concurrency. I want to fix that!
Here's a step-by-step discussion of how to make a network request with SwiftUI. It starts with GCD and moves to async/await. Includes some common techniques you might want to avoid too.
You do have to understand *a little*, but I tried my best to make it approachable.
https://www.massicotte.org/step-by-step-network-requestPublished at
2024-08-14 12:46:23 UTCEvent JSON
{
"id": "18b4db1344ec53b17e5f62b9a47a829ae3db2af8de4867a18d08ca1ebb05dec7",
"pubkey": "6124771baa662d7fd4f656043f4614ebf8af04ed03896f6c8e1d1336c9d21439",
"created_at": 1723639583,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/@mattiem/112960443757305197",
"web"
],
[
"proxy",
"https://mastodon.social/users/mattiem/statuses/112960443757305197",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/mattiem/statuses/112960443757305197",
"pink.momostr"
],
[
"-"
]
],
"content": "I've had a hard time writing things that help people get started with concurrency. I want to fix that!\n\nHere's a step-by-step discussion of how to make a network request with SwiftUI. It starts with GCD and moves to async/await. Includes some common techniques you might want to avoid too.\n\nYou do have to understand *a little*, but I tried my best to make it approachable.\n\nhttps://www.massicotte.org/step-by-step-network-request",
"sig": "0e5fdf42391cc71a2f636f650b9c36284e14881bc9864534a165c5f119a255e3bdc91ae80589c7194216b5b2e6a1bb6d969762644448cc8257b71d79a88032a2"
}