Skip to content

feature: golang-style defer for setting OnExit #152

Description

@nick1udwig

Can we add a golang-defer-like command that sets OnExit?

E.g. consider the case of an application that has bound an HTTP path. If that application dies, the path remains bound, since the application did not call unbind.

However, this is a natural case for OnExit-based cleanup; and possibly for a defer-like call.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions