Mauve 👁💜 on Nostr: AHA! Apparently I can get around this by using `tokio::task::spawn_local` instead of ...
Published at
2024-09-19 15:09:36Event JSON
{
"id": "c977613b9640b6f4e186595796b67227e3b6352aba0e68a5eb93d6fd1d48ed62",
"pubkey": "ca6770df24e21d6765c41a491f129fadc55ec34219c9ed90e5b18f7714bb0e70",
"created_at": 1726758576,
"kind": 1,
"tags": [
[
"e",
"39e03be7185016a13be80dd74d3498f3c45f53992ab2309a88c8cd333b196d04",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mastodon.mauve.moe/users/mauve/statuses/113164850041152300",
"activitypub"
]
],
"content": "AHA! Apparently I can get around this by using `tokio::task::spawn_local` instead of `tokio::spawn` according to this response to a deleted reddit post from two years ago. Yes my life expectancy got reduced a little while trying to figure this out.\n\nhttps://www.reddit.com/r/rust/comments/10xwg0h/why_does_tokiospawn_require_send/",
"sig": "475d86685851b7d3e75ca35c89b319a2250d3f64a8e55f8383069aede4bee9c2e28d6cdbc2c80fc711283b816a867cac2719aa17d7a21683f07b3dfc671f7911"
}