Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 /// <summary>
 ///   Waits for the result to complete.
 /// </summary>
 /// <returns>The result value.</returns>
 public T End()
 {
     return((T)AbstractAsyncResult.End(result));
 }
			/// <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;
			}