From 30c02fe47d0d8cf7395316b15c1b43b36237fdeb Mon Sep 17 00:00:00 2001 From: Jacob Fielding Date: Wed, 18 Mar 2026 16:14:30 -0700 Subject: [PATCH] fix: corrected readme example --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {