logoalt Hacker News

ziofilltoday at 4:56 PM1 replyview on HN

Sounds very cool! What do you mean by “revert side effects it created”?


Replies

ef2ktoday at 5:13 PM

Anythign that needs to be cleaned up or undone goes in ctx.effect. It returns the "inverse" (the cleanup function) when the plugin loads. Cordis then stores it and runs it when the plugin unloads. Take a look at 5.1.1 in the paper.