Why can’t an actor contain an AsyncStream<T> anymore?

all of a sudden the following stopped compiling:

actor Delegate 
    let stream:AsyncStream<Signal>
        self.stream = .init(bufferingPolicy: .unbounded) 
error: cannot use property 'stream' with a non-sendable type 'AsyncStream<Signal>' across actors
            self.stream    = .init(bufferingPolicy: .unbounded) 

i’m at my wits end here with the latest toolchain update. why on earth is this not compiling?

(i suppose i brought this on myself… surely there is a middle ground to be found…)

Terms of Service

Privacy Policy

Cookie Policy