apache / pekko

Build highly concurrent, distributed, and resilient message-driven applications using Java/Scala
https://pekko.apache.org/
Apache License 2.0
1.13k stars 137 forks source link

Add FutureTimeoutSupport#timeout support #1359

Open He-Pin opened 1 month ago

He-Pin commented 1 month ago

Motivation: Just like Java 's orTimeout method, which will cancel the future(if possible) and complete it with a timeout exception.