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
32
32
@available(SwiftStdlib 6.2, *)
33
33
extension Task where Failure == ${FAILURE_TYPE} {
34
34
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
+
35
46
/// Create and immediately start running a new task in the context of the calling thread/task.
36
47
///
37
48
/// This function _starts_ the created task on the calling context.
You can’t perform that action at this time.
0 commit comments