Execute code before shutdown

Answered

As part of my plugin, some data is being sent over http as the user types in editor. I would like to ensure, before intellij is shutdown, that the final update has been sent. What is the best way to go about doing this?

Thanks in advance,
Alex.

1 comment
Comment actions Permalink

com.intellij.openapi.util.ShutDownTracker#registerShutdownTask

0

Please sign in to leave a comment.