shawn-mcginty / naboris

Simple, fast, minimalist http server for OCaml/ReasonML
https://naboris.dev
MIT License
71 stars 4 forks source link

Expose main lwt promise #18

Closed shawn-mcginty closed 4 years ago

shawn-mcginty commented 4 years ago

Naboris.listen encapsulates the Lwt_main.runing of the promise. There should be a function to get the raw promise allowing the user to manage his own top level Lwt_main.run

Something like Naboris.listen_promise: int serverConfig -> 'a Lwt

shawn-mcginty commented 4 years ago

in 0.0.7 Naboris.listen was renamed to Naboris.listenAndWaitForever and there is a new Naboris.listen which returns an lwt promise