Open asmengistu opened 4 years ago
the deferrable
package maintainer happily reviews PR's ;)
just kidding, that's a good suggestion, maybe onDispose(fn)
?
On Mon, May 4, 2020 at 6:53 PM Abel Mengistu notifications@github.com wrote:
On first read I thought defer(fn()) executes fn in some deferred manner (as opposed to deferring the clean up). Thus I suggest deferCleanup as an improvement, there may be an even better name, but this is what I got.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jackdreilly/deferrable/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEXK6ZK6QTT6EQGO32SW5TRP3XJNANCNFSM4MY5IR2Q .
autoDisposed(fn)
?
On first read I thought
defer(fn())
executesfn
in some deferred manner (as opposed to deferring the clean up). Thus I suggest deferCleanup as an improvement, there may be an even better name, but this is what I got.