Editorial question115.1K views3,950 votes0 answers3,696 following
AI-generatedConfiguring System.Timeout.timeout for masked asynchronous exceptions
The goal is to ensure that System.Timeout.timeout can cancel an action even when the action masks asynchronous exceptions. The current implementation relies on throwing ThreadKilled via throwTo to the worker thread; if the action uses mask or uninterruptibleMask , the exception is delayed until masking ends, allowing the action to exceed the time limit. An o