How to avoid Await.result?
<p>I have my <code>Play</code> app, and I want to implement kind of uniqueness validation by myself, I use <code>Slick</code>, so it's natural that I do a simple <code>sum(1) where</code> call and if that <code>count</code> is more than zero I set the error to my <code>case class object</code>. So I can't imagine the workaround to avoid <code>Await.result</code> on my DB query, because I need to set the error right in the current time.</p>

<p>But I now that <code>Await.result</code> is really bad practice, any suggestions ?</p>