Replying to Avatar average_bitcoiner

Good morning.

Remember kids, if you have a MutexGuard, you have to drop that shit before doing async things so you're not trying to lock the Mutex during the async call. But don't use the function 'drop()'. Use curly braces to make a scope. Within that scope, clone that bitch out of there into a variable outside the scope then do async shit.

#rust #devstr

Avatar
Zorbar 1y ago

Gm

Reply to this note

Please Login to reply.

Discussion

No replies yet.