Sean Heber on Nostr: In Swift, OSLog's Logger struct isn't Sendable, apparently? That seems weird. I have ...
In Swift, OSLog's Logger struct isn't Sendable, apparently? That seems weird. I have a logger instance on my actor, but if I try to use it in one of my nonisolated functions I get a warning when strict concurrency mode is enabled because Logger isn't Sendable. I could shut this up using `@preconcurrency import OSLog` but is that... I dunno... legit?
Published at
2024-05-08 16:04:06Event JSON
{
"id": "56f51fcd26afe9fb75bd163727f590a6ad6dcab5e3b20f10cd32366170043c2d",
"pubkey": "06703a7ab4964bfb0b06e8fee210259ba46ffb23b24c15ece735e04d517872f2",
"created_at": 1715184246,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/bigzaphod/statuses/112406314786794395",
"activitypub"
]
],
"content": "In Swift, OSLog's Logger struct isn't Sendable, apparently? That seems weird. I have a logger instance on my actor, but if I try to use it in one of my nonisolated functions I get a warning when strict concurrency mode is enabled because Logger isn't Sendable. I could shut this up using `@preconcurrency import OSLog` but is that... I dunno... legit?",
"sig": "16e3e817c4a58dfccbbad397adeed43e2ced4d22130e745172406ebd4af954c95a6fb3aa58e608e499ec4b100ad21de82fa9d83b5f5af2c3c68e4a768b207501"
}