RichAwait

fm.common.rich.RichAwait
final class RichAwait(val await: Await.type) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def getResult[T](awaitable: Awaitable[T], atMost: Duration): Option[T]

Like Await.result but returns Some(...) on success and None on Timeout or Cancellation

Like Await.result but returns Some(...) on success and None on Timeout or Cancellation

Attributes

Concrete fields

val await: Await.type