mirror of
https://github.com/apple/container.git
synced 2026-09-21 07:05:57 +00:00
Continue documenting public surface (#25)
Signed-off-by: Danny Canter <danny_canter@apple.com>
This commit is contained in:
@@ -18,10 +18,10 @@
|
||||
import Foundation
|
||||
import Synchronization
|
||||
|
||||
/// Async friendly wrapper around DispatchSourceSignal. Provides an AsyncStream
|
||||
/// Async friendly wrapper around `DispatchSourceSignal`. Provides an `AsyncStream`
|
||||
/// interface to get notified of received signals.
|
||||
public final class AsyncSignalHandler: Sendable {
|
||||
/// An async stream that returns the signal that was caught, if ever
|
||||
/// An async stream that returns the signal that was caught, if ever.
|
||||
public var signals: AsyncStream<Int32> {
|
||||
let (stream, cont) = AsyncStream.makeStream(of: Int32.self)
|
||||
self.state.withLock {
|
||||
|
||||
Reference in New Issue
Block a user