Skip to content

Commit

Permalink
chore: Make AddFutureAwaitResult an AnyVal
Browse files Browse the repository at this point in the history
  • Loading branch information
He-Pin committed Jan 4, 2025
1 parent 6df0cbd commit d3517e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ package object util {
private[http] def installEventStreamLoggerFor[T](implicit ct: ClassTag[T], system: ActorSystem): Unit =
installEventStreamLoggerFor(ct.runtimeClass)

private[http] implicit class AddFutureAwaitResult[T](future: Future[T]) {
private[http] implicit class AddFutureAwaitResult[T](val future: Future[T]) extends AnyVal {

/** "Safe" Await.result that doesn't throw away half of the stacktrace */
def awaitResult(atMost: Duration): T = {
Expand Down

0 comments on commit d3517e0

Please sign in to comment.