Last active
March 21, 2023 16:07
-
-
Save NikolaiRuhe/5fee0c9d874a138b1118074ef3048e72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actor A { | |
var iterator: AsyncStream<Void>.Iterator | |
init() { | |
iterator = AsyncStream<Void> { _ in }.makeAsyncIterator() | |
} | |
func f() async { | |
await iterator.next() // Cannot call mutating async function 'next()' on actor-isolated property 'iterator' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment