Method onsuccess in Scala Future
<p>I have future that compute some computation and i want to take the result. I have to use variant Await.result(...) (it works fine). But there is <strong>onSuccess</strong>
 method in Future, but it doesn't ensure that i take result before computation finishes. What is purpose and scope of using onSuccess method in Future?</p>