comparison Implab/Safe.cs @ 209:a867536c68fc v2

Bound promise to CancellationToken Added new states to ExecutionSate enum. Added Safe.Guard() method to handle cleanup of the result of the promise
author cin
date Wed, 16 Nov 2016 03:06:08 +0300
parents 558f34b2fb50
children 9ee78a345738
comparison
equal deleted inserted replaced
208:7d07503621fe 209:a867536c68fc
125 return action() ?? Promise<T>.FromException(new Exception("The action returned null")); 125 return action() ?? Promise<T>.FromException(new Exception("The action returned null"));
126 } catch (Exception err) { 126 } catch (Exception err) {
127 return Promise<T>.FromException(err); 127 return Promise<T>.FromException(err);
128 } 128 }
129 } 129 }
130
130 } 131 }
131 } 132 }