elsaland / elsa

❄️ Elsa is a minimal runtime for JavaScript and TypeScript written in Go
MIT License
2.79k stars 61 forks source link

make improvents to ops.Serve #78

Closed samhza closed 3 years ago

samhza commented 3 years ago

The sync.WaitGroup (which was ineffectual, see #77) has been replaced with an error channel in preparation for #75 so that http.ListenAndServe's error can eventually be thrown at the script that called Elsa.serve. Renamed some variables to be more clear, also removed redundant comments. Made the requests and responses channels unbuffered.

Let me know if there are any changes I should make.