##// END OF EJS Templates
fixed timeout handling in promises
cin -
r148:e6d4b41f0101 v2
parent child
Show More
@@ -172,8 +172,8 namespace Implab {
172
172
173 #region synchronization traits
173 #region synchronization traits
174 protected void WaitResult(int timeout) {
174 protected void WaitResult(int timeout) {
175 if (!IsResolved)
175 if (!(IsResolved || GetResolveSignal().Wait(timeout)))
176 GetResolveSignal().Wait(timeout);
176 throw new TimeoutException();
177
177
178 switch (m_state) {
178 switch (m_state) {
179 case SUCCEEDED_STATE:
179 case SUCCEEDED_STATE:
General Comments 0
You need to be logged in to leave comments. Login now