Extremely mixed emotions when the Rust compiler tells me that this thing I've been working on all week fundamentally can't work, but also it was in an extremely subtle way that I never would have caught on my own
-
Show this thread
-
Short version of the thing it caught: I want to try to grab a DB connection before spawning a thread that uses it (rather than spawn a thread and have it immediately block waiting for a DB conn). The connection uses a re-entrant mutex in tests. Can't have both.
1 reply 1 retweet 14 likesShow this thread -
It makes complete sense now that the compiler stopped me, but damn this would have been hard to debug
1 reply 2 retweets 20 likesShow this thread -
Replying to @spacekookie
Ugh async await actually straight up requires that and it shouldn't but that's a whole other rant
8:33 AM - 12 Feb 2019
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
