diff --git a/README.md b/README.md index c5cc401..2d1692f 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,10 @@ This example shows how you'd effectively erase the official and shimmed backport was used to allow erasure into a clean `AsyncStream`. ```swift -func observableStream( - _ emit: @escaping @isolated(any) @Sendable () -> Element +func observe( + @_inheritActorContext _ emit: @escaping @isolated(any) @Sendable () -> Element, ) -> AsyncStream { - if #available(iOS 26.0, *) { + if #available(iOS 26.0, macOS 26.0, tvOS 26.0, watchOS 26.0,visionOS 26.0, *) { let official = Observations(emit) return AsyncStream(official) } else {