comparison Implab/FuncTaskT.cs @ 199:43b1017ce100 v2

Слияние с default
author cin
date Fri, 14 Oct 2016 03:33:17 +0300
parents 40d7fed4a09e
children
comparison
equal deleted inserted replaced
195:ea485487a424 199:43b1017ce100
10 10
11 public void Resolve(TArg value) { 11 public void Resolve(TArg value) {
12 if (m_task != null && LockCancelation()) { 12 if (m_task != null && LockCancelation()) {
13 try { 13 try {
14 SetResult(m_task(value)); 14 SetResult(m_task(value));
15 } catch(OperationCanceledException reason) {
16 HandleCancelInternal(reason);
17 } catch(Exception err) { 15 } catch(Exception err) {
18 HandleErrorInternal(err); 16 SetErrorInternal(err);
19 } 17 }
20 } 18 }
21 } 19 }
22 } 20 }
23 } 21 }