Skip to content
GuidesChecked 20 November 2026

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.

Swift files with each concurrency word
WordFiles
nonisolated365,056
Task.sleep355,840
@unchecked Sendable294,912
MainActor.run119,552
Task.checkCancellation66,560
@preconcurrency55,744
withTaskGroup38,208
AsyncThrowingStream31,168
import Synchronization30,784
withThrowingTaskGroup24,544
AsyncSequence12,224

Grand Central Dispatch

The older dispatch tools are still common.

Swift files with each dispatch word
WordFiles
asyncAfter268,800
NSLock210,176
DispatchSemaphore55,296
DispatchWorkItem36,928
OperationQueue32,192
DispatchGroup31,360
os_unfair_lock2,560

Combine and Rx

The Combine cancellable beats the Rx bag.

Swift files with each Combine or Rx word
WordFiles
AnyCancellable128,000
DisposeBag76,416
eraseToAnyPublisher48,960
CurrentValueSubject12,448

Callbacks

Completion handlers are still written.

Both are larger than any of the task group words above.

Swift files with each callback word
WordFiles
completion: @escaping243,968
completionHandler204,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.

Files with the first word per file with the second
PairRatio
withTaskGroup / DispatchGroup1.2
Task.sleep / asyncAfter1.3
AnyCancellable / DisposeBag1.7
NSLock / import Synchronization6.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.

The ten words in the most files
RankWordFiles
1nonisolated365,056
2Task.sleep355,840
3@unchecked Sendable294,912
4asyncAfter268,800
5completion: @escaping243,968
6NSLock210,176
7completionHandler204,032
8AnyCancellable128,000
9MainActor.run119,552
10DisposeBag76,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.

Word counts added up by group
GroupWordsFiles
Swift concurrency111,394,592
Grand Central Dispatch7637,312
Callbacks2448,000
Combine and Rx4265,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.

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.