Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Future is not completed with anything if it throws InterruptedException #8938

@scabug

Description

@scabug

When code executed as future throws InterruptedException, future is not completed (neither success or failure). Await.result will block indefinitely if timeout is infinite.

It is quite typical for any concurrent code to throw InterruptedException, for example Thread.sleep() might throw one. It is extremely error prone that this type of exception is swallowed and only indication is ExecutionContext's failure report, by default printed to console.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions