Handle Exceptions From Asynchronous Results This awaits a future operation that returns HTML and converts any exception that arises during the future operation or waiting into HTML as well.
Handle Exceptions From Asynchronous Results This awaits a future operation that returns HTML and converts any exception that arises during the future operation or waiting into HTML as well. So, this is guaranteed to never let an exception escape and to always return Html.
The Future[Html] to wait for
How long to wait, at most
The name of the operation being waited for, to assist with error messages
A blob of Html containing either the intended result or an error message.
Utilities used throughout Scrupla. Should probably be an aspect, but we just mix this in as needed. Helps with logging, throwing exceptions and dealing with futures.