zostay / RakuWAPI

The Web API for Raku (RakuWAPI)
Artistic License 2.0
24 stars 5 forks source link

Is the error stream sensible? #4

Closed zostay closed 9 years ago

zostay commented 9 years ago

Right now the p6sgi.error stream is designed in terms of PSGI with the addition of a flush method which is part of Rack or one of the other specs I read at some point and seemed reasonable at some point early on, but I haven't really put much thought into it at this point.

Is the streaming API sensible and well-justified? Should flush be kept? Does anything else need to be added? Should it be refactored into something else entirely?

zostay commented 9 years ago

I've replaced the error stream with a Supply. It just seems like the right thing to do and it allows for parity between all the other streams being handled that way. I don't think I'll regret this change.