Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@guizmaii
Copy link
Member

@guizmaii guizmaii commented Feb 16, 2025

Similar changes to those made in #9383 and #9556

Also took these changes into consideration in this PR: #9478

@guizmaii guizmaii force-pushed the simplify_ZChannel_mapOutZIOParUnordered branch 2 times, most recently from 1dcdf90 to 37107c5 Compare February 16, 2025 06:11
@guizmaii guizmaii force-pushed the simplify_ZChannel_mapOutZIOParUnordered branch from 37107c5 to 50e7dd7 Compare February 16, 2025 06:42
@guizmaii guizmaii force-pushed the simplify_ZChannel_mapOutZIOParUnordered branch from ad06a2b to 771e128 Compare February 16, 2025 07:29
@guizmaii guizmaii marked this pull request as ready for review February 16, 2025 11:35
@guizmaii guizmaii requested review from hearnadam, kyri-petrou and regiskuckaertz and removed request for kyri-petrou February 16, 2025 11:35
f: OutElem => ZIO[Env1, OutErr1, OutElem2]
)(implicit trace: Trace): ZChannel[Env1, InErr, InElem, InDone, OutErr1, OutElem2, OutDone] =
)(implicit trace: Trace): ZChannel[Env1, InErr, InElem, InDone, OutErr1, OutElem2, OutDone] = {
sealed trait ResultUnordered
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't name it Result. Mima was complaining. Probably clashing with the Result in mergeAllWith

@guizmaii guizmaii changed the title Optimise zio.stream.ZChannel::mapOutZIOParUnordered code Optimise ZChannel::mapOutZIOParUnordered code Feb 17, 2025
@guizmaii guizmaii self-assigned this Feb 20, 2025
@guizmaii guizmaii requested a review from ghostdogpr April 8, 2025 11:44
@guizmaii
Copy link
Member Author

@kyri-petrou This PR is ready for review :)

outgoing.offer(ResultUnordered.Failure)
case Left(x: Right[OutErr, OutDone]) =>
permits.withPermits(n0)(ZIO.unit).interruptible *>
outgoing.offer(ResultUnordered.Done(x.value))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would previously offer an Exit.Failure(Right(...)) but now it offers a Done instead of Failure. Is that intended?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines -813 to -814
case Right(c) if c.isInterruptedOnly => ZChannel.refailCause(failure0)
case Right(cause) => ZChannel.refailCause(cause)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it was possible (old L793)

@guizmaii guizmaii requested a review from kyri-petrou July 29, 2025 06:58
@guizmaii
Copy link
Member Author

@guizmaii guizmaii marked this pull request as draft August 5, 2025 04:13
@guizmaii
Copy link
Member Author

guizmaii commented Aug 5, 2025

Closed in favour of #10080 as the rebase was becoming impossible

Sorry about that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants