comparison Implab/ActionTask.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
10 public void Resolve() { 10 public void Resolve() {
11 if (m_task != null && LockCancelation()) { 11 if (m_task != null && LockCancelation()) {
12 try { 12 try {
13 m_task(); 13 m_task();
14 SetResult(); 14 SetResult();
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 }