Gastove / doctopus

An un-opinionated framework for Docs on the Webs
Eclipse Public License 1.0
7 stars 2 forks source link

Async http build #77

Closed Gastove closed 8 years ago

Gastove commented 8 years ago

This PR brings in a simple-but-effective way of asynchronously building HTML away from the main doctopus process, and thus closes #61. It does this like so: the Doctopus now creates a worker proc in a go-loop that consumes pairs of [fn fn-args] from a core.async channel. Heads can now put pairs of [generate-html tentacle] on that channel. Both have an optional async? arg to allow specific enabling of async generation (needed so that tests can use non-async html creation and thus still pass, ever).

Boom!

fardog commented 8 years ago

:+1: