$ the-wire · showcase
Flutter tools harden their error paths, Swift fixes a Task.sleep crash
By RepoJournal · Filed · About Mobile platforms · Composed from the cited sources · methodology
The day's changes land mostly in tooling and edge cases: Flutter cleans up a crashing screenshot path and a racy extension manager, while Swift stops Task.sleep from aborting on a clamped-too-large duration.
[Concurrency] Fix numeric overflow in Task.sleep(). apple/swift
Calling `try await Task.sleep(for: .seconds(Int64.max))` previously crashed because `Duration.components` tried to convert a seconds count exceeding `Int64.max`; the fix clamps the value instead. The same overflow path is now survivable rather than a trap for anyone passing large or computed durations.
[flutter_tools] Handle RPCError in ScreenshotCommand.runSkia flutter/flutter
`flutter screenshot --type=skia` against an Impeller-enabled app used to die on an unhandled `vm_service.RPCError` (-32000), since the engine rejects `_flutter.screenshotSkp` under Impeller. `ScreenshotCommand.runSkia` now catches `RPCError` and exits through `throwToolExit` carrying the engine's message, so the CLI reports the reason instead of a stack trace.
[flutter_tools] Guard ExtensionManager initialization against concurrent disposal (#196459) flutter/flutter
`ExtensionManager.dispose()` now memoizes `_disposeFuture`, clears active capability lists synchronously, and awaits any in-flight `_initFuture` (catching startup errors) before tearing down registered connections. This closes the window where an initialization racing a disposal left the manager in an inconsistent state.
[flutter_tools, flutter_test] Deprecate --experimental-faster-testing flutter/flutter
The unused `--experimental-faster-testing` flag now emits a deprecation warning, and `FlutterTestRunner.runTestsBySpawningLightweightEngines` is gone from `flutter_tools` along with its direct `package:ffi` dependency. The native FFI hooks in `tester_main.cc` stay in place, and `defaultRouteNameTestValue` is no longer seeded at `TestWidgetsFlutterBinding()` construction but cleared in reset.
[IRGen] Back-deploy conformances of back-deployed types apple/swift
Swift removes the restriction on back-deploying conformances of back-deployed types in resilient modules, checking for the real symbol on a new-enough OS and falling back to runtime uniquing via the foreign-witness-table otherwise. Also in the long tail: a second revert of Android shader prewarming over a merge conflict, a revert of web test subshard balancing, C++ interop refusing references t...