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

Timeouts don't work with Task.bracket acquire #1474

Open
saksmt opened this issue Jul 27, 2021 · 0 comments
Open

Timeouts don't work with Task.bracket acquire #1474

saksmt opened this issue Jul 27, 2021 · 0 comments

Comments

@saksmt
Copy link

saksmt commented Jul 27, 2021

Before 3.2.0 the following code:

Task
  .never[Unit]
  .bracket(_ => Task.unit)(_ => Task.unit)
  .timeout(1.second)
  .failed
  .map(_ => println("works fine"))
  .runSyncUnsafe(2.seconds)

resulted in printing works fine, but now it fails with TimeoutException: Task.runSyncUnsafe(2 seconds)

Looks like it's caused/related to #1087

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant