techfeudalist on Nostr: I learned a cool trick in #rust recently. You can modify standard types like Mutex to ...
I learned a cool trick in #rust recently. You can modify standard types like Mutex to give them superpowers. Like every time the mutex drops, you can get an event and do something with the data. So cool. 😎
Published at
2024-09-20 03:21:38Event JSON
{
"id": "f283d1e4c68f795e54dc9e338603e99eba2372b23018d6e6cfaa2a8039a48307",
"pubkey": "98a386c766ac9250f4ce1b500662fd08e4d464a1915743eedc83bd50521decac",
"created_at": 1726802498,
"kind": 1,
"tags": [
[
"t",
"rust"
]
],
"content": "I learned a cool trick in #rust recently. You can modify standard types like Mutex to give them superpowers. Like every time the mutex drops, you can get an event and do something with the data. So cool. 😎",
"sig": "8bd422b2077a83f7182526e57bb41522b1956cfccf79948f665274d05f1e0921bbdb1c79d2cb97509a9c805101e285e41b92f3c467a037baacdaa34a1c214fb0"
}