mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This adds new kinds of link entities corresponding to the three dispatch thunk link entity kinds: - DispatchThunkAsyncFunctionPointer - DispatchThunkInitializerAsyncFunctionPointer - DispatchThunkAllocatorAsyncFunctionPointer
12 lines
153 B
Swift
12 lines
153 B
Swift
open class BaseClass<T> {
|
|
var value: T
|
|
|
|
open func wait() async -> T {
|
|
return value
|
|
}
|
|
|
|
public init(_ value: T) {
|
|
self.value = value
|
|
}
|
|
}
|