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:23Event JSON
{
"id": "c15435c3025c8b2d5678459746870cb5c7e03a32041ff046dc1ea0e8ae499372",
"pubkey": "326c9100a3d1f1ecd0d35bf9590b2633e6c22a25debb08aac79d5af903bd8672",
"created_at": 1723639583,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/mattiem/statuses/112960443757305197",
"activitypub"
]
],
"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": "f3f6095b8d79509a53d76540bd70bf98c7b257d1609fafbf6829f4d625f2a4ae92ac9dc2e805ea6de6b10b85466b7e38766f8defc08b8cd72b45d7e4025d5e08"
}