mirror of
https://github.com/samsonjs/AsyncMonitor.git
synced 2026-03-25 08:25:47 +00:00
9 lines
228 B
Swift
9 lines
228 B
Swift
import Foundation
|
|
|
|
extension AsyncSequence where Element: Sendable {
|
|
static func just(_ value: Element) -> AsyncStream<Element> {
|
|
AsyncStream { continuation in
|
|
continuation.yield(value)
|
|
}
|
|
}
|
|
}
|