comparison Implab.Fx/PromiseHelpers.cs @ 111:0fdaf280c797 v1

minor fix
author cin
date Wed, 19 Nov 2014 03:18:42 +0400
parents 381095ad0a69
children
comparison
equal deleted inserted replaced
71:1714fd8678ef 111:0fdaf280c797
23 /// .DirectToControl(m_ctl) // handle the promise in the thread of the control 23 /// .DirectToControl(m_ctl) // handle the promise in the thread of the control
24 /// .Then( 24 /// .Then(
25 /// description => m_ctl.Text = description // now it's safe 25 /// description => m_ctl.Text = description // now it's safe
26 /// ) 26 /// )
27 /// </example> 27 /// </example>
28 public static Promise<T> DispatchToControl<T>(this Promise<T> that, Control ctl) 28 public static Promise<T> DispatchToControl<T>(this IPromise<T> that, Control ctl)
29 { 29 {
30 if (that == null) 30 if (that == null)
31 throw new ArgumentNullException("that"); 31 throw new ArgumentNullException("that");
32 if (ctl == null) 32 if (ctl == null)
33 throw new ArgumentNullException("ctl"); 33 throw new ArgumentNullException("ctl");