scalatra/scalatra — pull request #323 by swallez (2013-10-14 15:07:47+00:00)
Title: Fix issue #321: the result of a Future can be another Future, so we unroll them until we have an actual result

Recursively call onComplete when a Future results in another Future or AsyncResult, until we have an actual result which can be rendered in the servlet response.