Skip to content

[Concurrency] Task can have instances, add UnsafeCurrentTask; remove any Time related API #35704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/swift/ABI/TaskStatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace swift {

/// The abstract base class for all sttatus records.
/// The abstract base class for all status records.
///
/// TaskStatusRecords are typically allocated on the stack (possibly
/// in the task context), partially initialized, and then atomically
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/Concurrency/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ add_swift_target_library(swift_Concurrency ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} I
Actor.swift
CheckedContinuation.swift
GlobalExecutor.cpp
Executor.swift
AsyncIteratorProtocol.swift
AsyncSequence.swift
PartialAsyncTask.swift
Task.cpp
Task.swift
TaskCancellation.swift
_TimeTypes.swift
TaskAlloc.cpp
TaskStatus.cpp
TaskGroup.cpp
Expand Down
16 changes: 16 additions & 0 deletions stdlib/public/Concurrency/Executor.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
////===----------------------------------------------------------------------===//
////
//// This source file is part of the Swift.org open source project
////
//// Copyright (c) 2021 Apple Inc. and the Swift project authors
//// Licensed under Apache License v2.0 with Runtime Library Exception
////
//// See https://swift.org/LICENSE.txt for license information
//// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
////
////===----------------------------------------------------------------------===//

import Swift

// TODO: just a placeholder; proposal and complete types soon
public protocol ExecutorRef {}
Loading