You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def foo: Directive1[F] =
withToken.flatMap(
token =>
onComplete(
//some ZIO is returned here
)
)
In scenarios like this, what is the way to go forward. One way is to use runtime.unsafeRuntoFuture(someZIO). But isn't this an expensive thing to do (as this directives are called ever time the route is hit) ? Is there any other way to approaching this
The text was updated successfully, but these errors were encountered:
Is it possible to use ZIO in akka directives?
In scenarios like this, what is the way to go forward. One way is to use
runtime.unsafeRuntoFuture(someZIO)
. But isn't this an expensive thing to do (as this directives are called ever time the route is hit) ? Is there any other way to approaching thisThe text was updated successfully, but these errors were encountered: