Attaches a timeout handler to the given future, which is executed shortly after the future has timed out if it hasn't already been completed at that point in time.
Attaches a timeout handler to the given future, which is executed shortly after the future has timed out if it hasn't already been completed at that point in time. Note that this implementation has the following limitations: - the callback is called at X ms after the call to "onTimeout", not (as it should be) at X ms after future creation - the timeout callback is run on the (single!) scheduler thread created by the akka.dispatch.Scheduler (unless the future is already expired at the time of call) and should therefore be non-blocking and fast Akka 1.2 will supply this functionality by itself, so this pimp will be removed at some point.