Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Future::get() does a wait if the future is still pending. If this is accidentally called in an actor, the actor will be blocked. We should avoid calling Future::get() in the code. The plan would be:
- Introduce Future::value(): crash if not READY
- Make Future::operator* and Future::operator-> akin to Future::value()