swift
030d163d - [Concurrency] Rename closure parameter body -> operation

Commit
142 days ago
[Concurrency] Rename closure parameter body -> operation Match the convention used elsewhere in the concurrency stdlib for 'decorator over work' APIs (withTaskCancellationHandler, withTaskExecutorPreference, withTaskPriorityEscalationHandler, TaskLocal.withValue). 'body' is reserved for APIs that hand back a handle to interact with (TaskGroup, UnsafeCurrentTask, MainActor.run). Renames __withTaskCancellationScope's positional closure parameter and updates the doc comments in TaskCancellationScope.swift plus one explanatory comment in the runtime test.
Author
Parents
Loading