Future!T that mirrors input or rejects on timeout.Apply a timeout to a future using an event loop.
If the future completes (resolve, reject, or cancel) before the timeout expires, the result propagates normally. If the timeout fires first, the future is rejected with a timeout error and the original promise is cancelled.
input | The future to apply a timeout to. |
loop | Event loop used to schedule the timeout timer. |
timeoutMs | Timeout duration in milliseconds. |
Future!T that mirrors input or rejects on timeout.