comparison Implab/FuncChainTaskT.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
12 if (m_task != null && LockCancelation()) { 12 if (m_task != null && LockCancelation()) {
13 try { 13 try {
14 var operation = m_task(value); 14 var operation = m_task(value);
15 operation.On(SetResult, HandleErrorInternal, SetCancelled); 15 operation.On(SetResult, HandleErrorInternal, SetCancelled);
16 CancellationRequested(operation.Cancel); 16 CancellationRequested(operation.Cancel);
17 } catch (OperationCanceledException reason) {
18 HandleCancelInternal(reason);
19 } catch (Exception err) { 17 } catch (Exception err) {
20 HandleErrorInternal(err); 18 SetErrorInternal(err);
21 } 19 }
22 } 20 }
23 } 21 }
24 } 22 }
25 } 23 }