Skip to content

Commit 18d976f

Browse files
committed
guard assume on executor API against task-to-thread runtimes
1 parent 869fc17 commit 18d976f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/public/Concurrency/ExecutorAssertions.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import Swift
1414
import SwiftShims
1515

16+
#if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
1617
// ==== -----------------------------------------------------------------------
1718
// MARK: Precondition executors
1819

@@ -244,4 +245,5 @@ func assumeOnActorExecutor<Act: Actor, T>(
244245
}
245246
}
246247

247-
// TODO(ktoso): implement assume for distributed actors as well
248+
// TODO(ktoso): implement assume for distributed actors as well
249+
#endif // not SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY

0 commit comments

Comments
 (0)