luminus-framework / luminus-template

a template project for the Luminus framework
http://www.luminusweb.net/
MIT License
645 stars 147 forks source link

Support for async ring handlers #573

Closed grmble closed 1 year ago

grmble commented 1 year ago

closes #571

There is an async feature now that switches the server into async mode. It also provides a utility middleware to make async handlers less painful, plus an example.

The general purpose middleware can all handle 1 and 3 arguments now, this is not tied to any feature.

I also pulled in funcool/promesa for the feature. Programming with callbacks is not fun, promesa is fun AND cool. It says so in the name, right?

While testing I also ran lein ancient a bunch, and I bumped whatever was outdated.

The selmer bump seems to have accidentally fixed #572

yogthos commented 1 year ago

Thanks, the changes look great and agree with using Promesa for handling async calls. I just pushed out a new release with the updates. 🎉