Continue documenting public surface (#25)

Signed-off-by: Danny Canter <danny_canter@apple.com>
This commit is contained in:
Danny Canter
2025-06-06 10:34:19 -04:00
committed by GitHub
parent 46260fd6a6
commit fc4a124173
32 changed files with 215 additions and 33 deletions
@@ -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 {