I spent _WAAAAAYYYYYYY_ too long trying to write a test for a function that probably didn't even need to be tested in the first place and probably the test provides ~0 value but I did it you guys! I got it working!

Also I published v0.2.0 of clockabilly, which is my Rust library that lets you mock out time and sleeping and stuff -- now you can (pretend to) sleep and then execute a callback when you (pretend to) wake up.

https://github.com/acrlabs/clockabilly

#rust #rustlang #tests #mocks

GitHub - acrlabs/clockabilly: Trait wrapper for chrono

Trait wrapper for chrono. Contribute to acrlabs/clockabilly development by creating an account on GitHub.

GitHub

ah yes, a mutex map of mutexed fns

@drmorr nice compact type there 😅

@clux not my proudest moment, i confess