SplitScript reference / Migration / Blocking sleeps

Blocking sleeps

Migration from ASL, C#

Source pattern

Look for the ASL, C# concept Blocking sleeps 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

Thread.Sleep cannot block SplitScript's cooperative update loop. Model delayed work as state across ticks with Instant and Duration, or apply future.timeout when the source is bounding an existing asynchronous operation.

Supported hosts

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