Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix zio executor retrieving for blocking #428

Merged
merged 1 commit into from
Oct 22, 2020
Merged

Conversation

Odomontois
Copy link
Member

@Odomontois Odomontois commented Oct 22, 2020

Thanks to @REDNBLACK

@@ -157,7 +157,7 @@ class ZioTofuUnliftHasInstance[R <: Has[_], E, C: Tag] extends WithRun[ZIO[R wit
class ZioTofuBlockingInstance[R <: Blocking, E] extends BlockExec[ZIO[R, E, *]] {
def runScoped[A](fa: ZIO[R, E, A]): ZIO[R, E, A] = blocking(fa)

def executionContext: ZIO[R, E, ExecutionContext] = blocking(ZIO.runtime.map(_.platform.executor.asEC))
def executionContext: ZIO[R, E, ExecutionContext] = blockingExecutor.map(_.asEC)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow... How come we overlooked it?

@catostrophe catostrophe merged commit 2cc83c5 into master Oct 22, 2020
@Odomontois Odomontois deleted the fix-blocking branch March 3, 2021 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants