What is Nostr?
Adam Bell :catPOWER: /
npub14mg…j6qw
2024-02-08 03:18:42

Adam Bell :catPOWER: on Nostr: After trying out the channel / goroutine stuff in Go… man do I miss Swift ...

After trying out the channel / goroutine stuff in Go… man do I miss Swift Concurrency / GCD.

The fact that timers will run on rando threads all the time without any way of saying "just run this function, on the main thread, after 2s, but don't block the main thread" is so cumbersome to work around.

I very much do not want to rewrite this whole thing to do switching on channels or whatever, so I end up just tossing in mutexes or atomics to just ignore all of it
Author Public Key
npub14mgtsuytcjprn4098dtx3xv6myh84g0nrxtwtr9uatevz8nfwz7sqfj6qw