Core concept
Future { blocking { Thread.sleep(1000) } }Advertisement
How it works
Only global EC uses hint. Custom pools may ignore.
Advertisement
Trade-offs + gotchas
Wrapping blocking Java APIs in Future.
Future { blocking { Thread.sleep(1000) } }Only global EC uses hint. Custom pools may ignore.
Wrapping blocking Java APIs in Future.