Skip to content

Commit a5469c4

Browse files
committed
[AsyncLet] remove some commented out code
1 parent fae3c96 commit a5469c4

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

stdlib/public/Concurrency/AsyncLet.swift

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16,48 +16,13 @@ import Swift
1616
// ==== Async Let -------------------------------------------------------------
1717
// Only has internal / builtin functions as it is not really accessible directly
1818

19-
//@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
20-
//@_silgen_name("swift_asyncLet_create")
21-
//func _asyncLetCreate(task: Builtin.NativeObject) -> Builtin.RawPointer
22-
2319
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
2420
@_silgen_name("swift_asyncLet_start")
2521
public func _asyncLetStart<T>(
2622
asyncLet: Builtin.RawPointer,
2723
operation: __owned @Sendable @escaping () async throws -> T
2824
)
2925

30-
//{
31-
// let currentTask = Builtin.getCurrentAsyncTask()
32-
//
33-
// // Set up the job flags for a new task.
34-
// var flags = Task.JobFlags()
35-
// flags.kind = .task
36-
// flags.priority = getJobFlags(currentTask).priority
37-
// flags.isFuture = true
38-
// flags.isChildTask = true
39-
//
40-
// print("\(#function) - FLAGS = \(flags.bits)")
41-
//// // Create the asynchronous task future.
42-
//// let (task, _) = Builtin.createAsyncTaskFuture(flags.bits, operation)
43-
////
44-
//// // Initialization of an async let already takes care of registering it with the parent task.
45-
//// let asyncLet = Builtin.createAsyncLet(operation)
46-
//// let asyncLet = Builtin.createAsyncLet(flags.bits, operation)
47-
//// let (asyncLet, task) = Builtin.createAsyncLet(flags.bits, operation)
48-
// let (asyncLet, _) = Builtin.createAsyncLet(flags.bits, operation)
49-
//// assert(unsafeBitCast(asyncLet, to: Int64.self) == unsafeBitCast(two, to: Int64.self))
50-
//
51-
// // Enqueue the resulting job.
52-
// _enqueueJobGlobal(
53-
// Builtin.convertTaskToJob(
54-
// _asyncLetExtractTask(of: asyncLet)))
55-
//
56-
//// _enqueueJobGlobal(Builtin.convertTaskToJob(task))
57-
//
58-
// return asyncLet
59-
//}
60-
6126
/// Similar to _taskFutureGet but for AsyncLet
6227
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
6328
@_silgen_name("swift_asyncLet_wait")

0 commit comments

Comments
 (0)