File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,17 @@ import Swift
3232@available(SwiftStdlib 6.2, *)
3333extension Task where Failure == ${FAILURE_TYPE} {
3434
35+ @available(SwiftStdlib 6.2, *)
36+ @available(*, deprecated, renamed: "immediate")
37+ @discardableResult
38+ public static func startSynchronously(
39+ name: String? = nil,
40+ priority: TaskPriority? = nil,
41+ @_implicitSelfCapture _ operation: __owned @isolated(any) @escaping () async throws -> Success
42+ ) -> Task<Success, ${FAILURE_TYPE}> {
43+ immediate(name: name, priority: priority, operation)
44+ }
45+
3546 /// Create and immediately start running a new task in the context of the calling thread/task.
3647 ///
3748 /// This function _starts_ the created task on the calling context.
You can’t perform that action at this time.
0 commit comments