Adam Fraser

Results 324 comments of Adam Fraser

It is here: https://zio.dev/guides/interop/with-cats-effect Is there a link somewhere that we need to update?

Got it. We had to do some reorganization to clean things up but will definitely try to keep that to a minimum in the future.

Perhaps we could provide it under a different name? `foreachNonEmptyList`? I ran into this too.

Can we close this? I don't think it is actionable.

I agree it can be a problem if you have libraries that incorrectly throw exceptions within `map` but I'm just not sure what we can do about it in this...

Don't we just need to use `ZIO.interrupt`? ```scala object Example extends ZIOAppDefault { val awaitInterruption: UIO[Any] = ZIO.descriptorWith(d => if (d.interrupters.nonEmpty) ZIO.interrupt *> ZIO.never else awaitInterruption) val run = for...

Okay, then I think we want something like: ```scala object Example extends ZIOAppDefault { val canceled: UIO[Any] = ZIO.fiberIdWith { fiberId => FiberRef.interruptedCause.update(_ ++ Cause.interrupt(fiberId)) } val run = for...

@johnspade Okay. Is this still an issue? Can we isolate what the expected behavior is that we need to support?

@johnspade Okay, great!

@neko-kai I'm fine with reverting this until we are all comfortable with the changes here since it seems like we are still figuring this out. @johnspade I will take a...