Skip to content

Consider adding an opt-in mechanism to request that a host keeps a task alive #612

Description

@alexcrichton

This is spun out of discussion from #608. The general idea here is that similar to waitUntil on the web platform tasks could have an opt-in mechanism to provide a future<_> to the host and say "please consider me alive until this is resolved". This could affect behavior on the host of when an instance or store is shut down. For example using this API could keep wasi:cli/run alive longer or maybe it could keep a wasi:http/service still running.

This is related to #611 insofar as it has to do with component teardown/shutdown from a host's perspective, and this is ideally a bit more cooperative than "host kills guest" unconditionally.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions