Skip to content

NIOThrowingAsyncSequenceProducer.AsyncIterator should support isolated next call #3114

Open
@fabianfett

Description

@fabianfett

To make iteration of AsyncSequences inside actors more performant the function

func next(isolation actor: isolated (any Actor)?) async throws(any Error) -> Element

was added as an advanced implementation hook. NIOThrowingAsyncSequenceProducer.AsyncIterator would ideally implement it.

Implementing this should be fairly easy as isolation: isolated (any Actor)? = #isolation needs to be added to all internal next calls until the internal lock is used. This only works with a Swift 6 compiler though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions