Mauve 👁💜 on Nostr: This week's #Rust lesson was to wrap mutable bits of state in `Arc<Mutex<>>` ...
This week's #Rust lesson was to wrap mutable bits of state in `Arc<Mutex<>>` otherwise you may encounter issues with data not persisting even though you think you've got mutable references to it.
Published at
2024-10-16 22:22:24Event JSON
{
"id": "9f946156fc8f17b3ce8f10e17e07289c51db1243b1752fda02da70789ecf3ff6",
"pubkey": "ca6770df24e21d6765c41a491f129fadc55ec34219c9ed90e5b18f7714bb0e70",
"created_at": 1729117344,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"proxy",
"https://mastodon.mauve.moe/users/mauve/statuses/113319434265626315",
"activitypub"
]
],
"content": "This week's #Rust lesson was to wrap mutable bits of state in `Arc\u003cMutex\u003c\u003e\u003e` otherwise you may encounter issues with data not persisting even though you think you've got mutable references to it.",
"sig": "b32b396224eaece61761006cf0f6c8d87c4ec931c0f14155cd362942395a29ce6341d3a387def0bdda7dbdf2674c48ecd80288b40a97fb0f9d9e52d71a36019c"
}