Description

PostHook registers a function to be called after all of this package's normal shutdown actions. All listeners will be called in the order they were added, from a single goroutine, and are guaranteed to be called after all listening connections have been closed, but before Wait() returns.

If you've Hijacked any connections that must be gracefully shut down in some other way (since this library disowns all hijacked connections), it's reasonable to use a PostHook to signal and wait for them.

PostHook is referenced in 22 repositories

github.com/zenazn/goji github.com/elcct/defaultproject github.com/glassesfactory/kusomock

...