grim/convey

Add note about cleanup function order.
cleanup-on-signal
2017-10-13, Eric Fritz
30663c716c77
Parents 5df528f78282
Children 137e9068c5f0
Add note about cleanup function order.
--- a/cleanup/cleanup.go Fri Oct 13 12:22:23 2017 -0500
+++ b/cleanup/cleanup.go Fri Oct 13 12:24:56 2017 -0500
@@ -65,7 +65,8 @@
// unless the returned function is called. The given function
// is wrapped in the return function, so it can be used in its
// place. This function MUST be called in order to deregister
-// it on exit if it cannot be called idempotently.
+// it on exit if it cannot be called idempotently. The order of
+// functions invoked on exit is not guaranteed to be stable.
func (c *List) Add(fn Func) func() {
c.mutex.Lock()
defer c.mutex.Unlock()