nixops4 / nixops4

Deploy with Nix and manage resources declaratively
199 stars 8 forks source link

rename `gc_registering_current_thread()` #31

Open Radvendii opened 2 months ago

Radvendii commented 2 months ago

This function name doesn't suggest to me what it does (call a function you pass in)

My suggestion: with_my_thread_gc_registered(). I don't know how universal this is, but I have a strong association of "with" with the idea of making something true, running a function, and then restoring the original state.