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
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