/// <summary> /// Constructs a new <see cref="Timeout"/> /// </summary> /// <param name="result">The async result.</param> /// <param name="interval">The timeout interval.</param> public Timeout(AbstractAsyncResult result, int interval) { this.result = result; this.interval = interval; }
/// <summary> /// Waits for the result to complete. /// </summary> /// <returns>The result value.</returns> public T End() { return((T)AbstractAsyncResult.End(result)); }