Swift concurrency, GCD and Combine usage
24 concurrency, GCD, Combine and callback words counted in public Swift files on 1 November 2026.
Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.
Swift concurrency
Isolation and sleeping lead the newer words.
The two leaders are level, because GitHub rounds large counts and they sit within 10 percent of each other.
| Word | Files |
|---|---|
| nonisolated | 365,056 |
| Task.sleep | 355,840 |
| @unchecked Sendable | 294,912 |
| MainActor.run | 119,552 |
| Task.checkCancellation | 66,560 |
| @preconcurrency | 55,744 |
| withTaskGroup | 38,208 |
| AsyncThrowingStream | 31,168 |
| import Synchronization | 30,784 |
| withThrowingTaskGroup | 24,544 |
| AsyncSequence | 12,224 |
Grand Central Dispatch
The older dispatch tools are still common.
| Word | Files |
|---|---|
| asyncAfter | 268,800 |
| NSLock | 210,176 |
| DispatchSemaphore | 55,296 |
| DispatchWorkItem | 36,928 |
| OperationQueue | 32,192 |
| DispatchGroup | 31,360 |
| os_unfair_lock | 2,560 |
Combine and Rx
The Combine cancellable beats the Rx bag.
| Word | Files |
|---|---|
| AnyCancellable | 128,000 |
| DisposeBag | 76,416 |
| eraseToAnyPublisher | 48,960 |
| CurrentValueSubject | 12,448 |
Callbacks
Completion handlers are still written.
Both are larger than any of the task group words above.
| Word | Files |
|---|---|
| completion: @escaping | 243,968 |
| completionHandler | 204,032 |
New against old
Task groups beat dispatch groups 1.2 to 1, Task.sleep beats asyncAfter 1.3 to 1 and the Combine cancellable beats the Rx bag 1.7 to 1.
The newer word leads in three of four pairs.
The old lock leads the new Synchronization import 6.8 to 1.
| Pair | Ratio |
|---|---|
| withTaskGroup / DispatchGroup | 1.2 |
| Task.sleep / asyncAfter | 1.3 |
| AnyCancellable / DisposeBag | 1.7 |
| NSLock / import Synchronization | 6.8 |
The top ten
The leaders across all 24 words are nonisolated, Task.sleep and @unchecked Sendable. The older asyncAfter is fourth and the callback phrase completion: @escaping is fifth.
Five of the ten most common words are older tools.
| Rank | Word | Files |
|---|---|---|
| 1 | nonisolated | 365,056 |
| 2 | Task.sleep | 355,840 |
| 3 | @unchecked Sendable | 294,912 |
| 4 | asyncAfter | 268,800 |
| 5 | completion: @escaping | 243,968 |
| 6 | NSLock | 210,176 |
| 7 | completionHandler | 204,032 |
| 8 | AnyCancellable | 128,000 |
| 9 | MainActor.run | 119,552 |
| 10 | DisposeBag | 76,416 |
By group
The concurrency words add up to the most files.
A file that holds several words is counted once for each. The group total is a sum of counts and not a count of files.
| Group | Words | Files |
|---|---|---|
| Swift concurrency | 11 | 1,394,592 |
| Grand Central Dispatch | 7 | 637,312 |
| Callbacks | 2 | 448,000 |
| Combine and Rx | 4 | 265,824 |
Moving an app
A migration to Swift concurrency starts with the places that wait for a result through a completion handler or a timed dispatch.
Start where a result is awaited.
The phrase completion: @escaping is in 243,968 files and asyncAfter in 268,800.
Isolation words such as nonisolated and @preconcurrency mark code the compiler already knows about. The older lock and dispatch words mark work for a later pass.
Move one module at a time and keep the older word beside the newer one until the module is done.
What is in the file
Counts by word
24 words across concurrency, dispatch, Combine, Rx and callbacks.
New against old
Four pairs with the ratio of public files that use each word.
A file you can cite
24 rows of counts, with the search behind each one and no code.
How the words were counted
GitHub code search, counts only.
Ask for a count
GitHub code search was asked how many public Swift files match each of 24 queries, one request each, at least seven seconds apart.
Match the word
Each name was matched as a word, and phrases such as completion: @escaping and @unchecked Sendable as exact text.
Repeat an incomplete result
An incomplete result from GitHub was asked for again, up to three times.
Keep the counts
The counts were kept and nothing else. No code was read.
What a package that calls a server should offer
A package that fetches votes and posts a request meets both styles of waiting. The older callback is in 243,968 files as completion: @escaping and in 204,032 as completionHandler, so offering a callback beside an async version reaches code that has not moved over.
Results from the network often return to the main actor, since MainActor.run is in 119,552 files. A package that hands back its results there spares its callers that step, and public types that are properly Sendable spare them the promise @unchecked Sendable makes in 294,912 files.
What these numbers leave out
- These are files, not apps, and not whether code is correct or fast.
- A file can use an older and a newer word together, as an app moves over.
- Task.sleep, nonisolated and asyncAfter are plain calls that also appear in tests and samples.
- Large counts come back rounded, so treat two words within 10 percent of each other as level.
- The older words have had years more to collect files, and a copied sample counts each time.
- The counts are from 1 November 2026.
What people ask about these counts
Is Swift concurrency used more than Grand Central Dispatch?
In some pairs. withTaskGroup is in 1.2 times as many files as DispatchGroup, but NSLock is in 6.8 times as many as import Synchronization.
Is Combine used more than RxSwift?
By these two words, yes. AnyCancellable is in 128,000 files and DisposeBag in 76,416.
Are completion handlers still common?
Yes. The phrase completion: @escaping is in 243,968 public Swift files and completionHandler in 204,032.
How common is @unchecked Sendable?
It is in 294,912 files, more than withTaskGroup and AsyncThrowingStream together.
Does a count mean good code?
No. It counts files that contain a word. A tutorial copied into many repositories counts each time.
Does the file hold any code?
No. It holds 24 counts, each with the search behind it, and no code or repository names.
May a site quote these figures?
Yes, with a link here and the read date, 1 November 2026. Every row is in the CSV.
More Swift code, counted
More counts from public Swift code.
Minimum iOS versions in 85,504 new Xcode projects
Which iOS and macOS versions projects and packages set.
CocoaPods, Swift Package Manager and Carthage
New Swift repositories by topic, 2013 to 2025.
34 iOS feedback SDKs on GitHub
Age, use, stars and license of each package.
Xcode release history: dates, Swift and macOS needed
144 final releases from 2003 to 2026.
NavigationStack, Observable and Swift Testing in GitHub
56 SwiftUI and Swift APIs counted in public files.
SwiftUI vs UIKit and 22 more Apple frameworks, counted
24 Apple frameworks counted in public Swift files.
StoreKit 2 vs StoreKit 1 in public Swift files
24 StoreKit words and test files counted.
Apple privacy manifest reason codes counted on GitHub
47 keys, codes and data types in 96,256 manifests.
Show 4 more
Swift Evolution proposals: how many are accepted
560 proposals by status, year and Swift version.
Swift 6, strict concurrency and Xcode versions counted
112 project and package settings counted.
URLSession, Codable and Network counted in Swift files
13 URLSession, decoding and connection check words counted.
ViewModel, Coordinator and Reducer counted in Swift files
Nine architecture words, with ViewModel in 903,168 files.
Collect feature requests in an iOS app
Your first board costs nothing. The Free plan keeps one project with 100 votes, and the 14 day trial of Lite or Pro asks for no card.