Helge Heß on Nostr: What was the Sendable solution for keypathes? I wanted to do this, but it fails ...
What was the Sendable solution for keypathes? I wanted to do this, but it fails because KP is not Sendable but the Binding setter/getter closures are. (Capture of 'keyPath' with non-sendable type 'WritableKeyPath<B, Value>' in a `@Sendable` closure)
Published at
2024-07-07 15:48:50Event JSON
{
"id": "8e1e741c8c120f5c7a6c83f96fd0331796fa3febebd10626002df2c718fd889d",
"pubkey": "9bddd4578b658620bdbf06f97fb8f978c08b641d1d0248a613f552d7ef7f709a",
"created_at": 1720367330,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/helge/statuses/112745993370476915",
"activitypub"
]
],
"content": "What was the Sendable solution for keypathes? I wanted to do this, but it fails because KP is not Sendable but the Binding setter/getter closures are. (Capture of 'keyPath' with non-sendable type 'WritableKeyPath\u003cB, Value\u003e' in a `@Sendable` closure)\n\nhttps://files.mastodon.social/media_attachments/files/112/745/989/920/579/019/original/428548bf4402b296.png",
"sig": "60930ae27dcae147c7696ffa3531aa947ef87673da73d3c5f3089fcd6d5eb9d75b0e08d6528af84b79089c7f55b6d4e90bc78114b10cebf9e1b63da2f66bbf33"
}