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

Слияние с default
author cin
date Fri, 14 Oct 2016 03:33:17 +0300
parents 40d7fed4a09e
children eee3e49dd1ff
comparison
equal deleted inserted replaced
195:ea485487a424 199:43b1017ce100
13 if (m_task != null && LockCancelation()) { 13 if (m_task != null && LockCancelation()) {
14 try { 14 try {
15 var operation = m_task(); 15 var operation = m_task();
16 operation.On(SetResult, HandleErrorInternal, HandleCancelInternal); 16 operation.On(SetResult, HandleErrorInternal, HandleCancelInternal);
17 CancellationRequested(operation.Cancel); 17 CancellationRequested(operation.Cancel);
18 } catch (OperationCanceledException reason) {
19 HandleCancelInternal(reason);
20 } catch (Exception err) { 18 } catch (Exception err) {
21 HandleErrorInternal(err); 19 SetErrorInternal(err);
22 } 20 }
23 } 21 }
24 } 22 }
25 } 23 }
26 } 24 }