Skip to content

Add at_exit runtime function #4450

Closed
Closed
@brson

Description

@brson

Part of removing comm: #3915.

Both global data and weak tasks need to execute some code immediately before runtime shutdown, and there will probably be others in the future. To facilitate this I intend to add a privileged function, fn at_exit(~fn()).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions