SplitScript reference / Migration / exit lifecycle block

exit lifecycle block

Migration from ASL

Source pattern

Look for the ASL concept exit lifecycle block in the source. The semantic difference below is more important than a token-for-token rewrite.

Canonical SplitScript

Use the canonical language and API symbols linked below.

Semantic difference

Use onDetach for cleanup that runs exactly once after an attached process closes.

Supported hosts

This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.