| 1087 | } |
| 1088 | |
| 1089 | THandleRef Schedule(const TMessage& msg, IOnRecv* fallback, TServiceStatRef& ss) { |
| 1090 | //find exist connection or create new |
| 1091 | TRequest::THandleRef hndl(new TRequest::THandle(fallback, msg, !ss ? nullptr : new TStatCollector(ss))); |
| 1092 | try { |
| 1093 | TRequest::Run(hndl, msg, *this); |
| 1094 | } catch (...) { |
| 1095 | hndl->ResetOnRecv(); |
| 1096 | hndl->ReleaseRequest(); |
| 1097 | throw; |
| 1098 | } |
| 1099 | return hndl.Get(); |
| 1100 | } |
| 1101 | |
| 1102 | TExecutorsPool& ExecutorsPool() { |
| 1103 | return EP_; |
no test coverage detected