segmentio/ware — pull request #17 by blakeembrey (2014-09-17 03:42:21+00:00)
Title: Support promises in middleware

Suppose synchronous middleware that returns a promise. How should errors work however? Since falsy values can be used to reject the promise. The same issue exists for synchronous errors thrown actually.