Skip to content

Commit 6d8f6fc

Browse files
authored
Merge pull request #71337 from tshortli/global-concurrent-executor-as-unowned-task-executor-warning
[TaskExecutors] Add missing return type to `_DefaultGlobalConcurrentExecutor.asUnownedTaskExecutor()`
2 parents 034a8a0 + ad2fcc6 commit 6d8f6fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/Concurrency/GlobalConcurrentExecutor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ internal final class _DefaultGlobalConcurrentExecutor: TaskExecutor {
5454
_enqueueJobGlobal(job.context)
5555
}
5656

57-
public func asUnownedTaskExecutor() {
57+
public func asUnownedTaskExecutor() -> UnownedTaskExecutor {
5858
// The "default global concurrent executor" is simply the "undefined" one.
5959
// We represent it as the `(0, 0)` ExecutorRef and it is handled properly
6060
// by the runtime, without having to call through to the
@@ -63,4 +63,4 @@ internal final class _DefaultGlobalConcurrentExecutor: TaskExecutor {
6363
}
6464
}
6565

66-
#endif
66+
#endif

0 commit comments

Comments
 (0)