Skip to content

Commit

Permalink
Syntactic Sugar
Browse files Browse the repository at this point in the history
  • Loading branch information
nob13 committed May 3, 2024
1 parent 8d2af5a commit 47389e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/shared/src/main/scala/kreuzberg/Effect.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ case class Effect[T](fn: ExecutionContext => Future[T]) {
fn(ec).map(mapFn)(ec)
}
}

def run()(using ec: ExecutionContext): Future[T] = fn(ec)
}

object Effect {
Expand Down

0 comments on commit 47389e2

Please sign in to comment.