Endpoint Hangs When `Stream.tap` is Commented Out in OpenAI Streaming API

Hey! I just picked up Effect and really liking it so far, but I have a tiny question that's puzzling me.

I have this single api endpoint that returns a streaming result from openai. It works right now, but if I comment out the Stream.tap the endpoint hangs.

Does anyone know why?
CleanShot_2024-08-09_at_18.34.392x.png
Was this page helpful?