Skill Wiki v0.1.0
rule @ios-swift/rule-await-not-completion-handler

Await Not Completion Handler

New async APIs are written as `func f(...) async throws -> T`. The call site reads as straight-line code, errors propagate through `try`, cancellation propagates through the cooperative cancellation system, and the struc…

Skill
@ios-swift
Domain
ios-swift
Version
0.1.0
Quality
4.0
Edges
3 out · 4 in
Tokens
144/372/398
$ prime install @ios-swift/rule-await-not-completion-handler

Projection

Always in _index.xml · the agent never has to ask for this.

AwaitNotCompletionHandler [rule] v0.1.0

New async APIs are written as func f(...) async throws -> T. The call site reads as straight-line code, errors propagate through try, cancellation propagates through the cooperative cancellation system, and the structured-concurrency model (Task, TaskGroup, async let) composes naturally. Completion-handler APIs ((Result<T, E>) -> Void callbacks) are reserved for two cases: (1) wrapping platform APIs that have not yet adopted async, and (2) interop with Objective-C code that calls back via blocks.

Source

prime-system/examples/ios-swift/primes/compiled/@ios-swift/rule-await-not-completion-handler/atom.yaml

Compiled at 2026-05-10