Expose Router.isClosed #259
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
module: router
i'm attempting to write a health check for a service that uses watermill and i'd like to be able to easily determine if the router is still up and running
Router exposes a channel at
.Running()
, and it's possible to infer if the router is closed with a little indirection:however it would be much simpler if we could simply call
router.IsClosed()
. perhaps there is another solution i've missed?The text was updated successfully, but these errors were encountered: