MCPcopy Create free account
hub / github.com/catboost/catboost / SetValue

Function SetValue

library/cpp/threading/future/core/future-inl.h:493–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491
492 template <typename T, typename F>
493 inline void SetValue(TPromise<T>& promise, F&& func) {
494 try {
495 SetValueImpl(promise, func());
496 } catch (...) {
497 const bool success = promise.TrySetException(std::current_exception());
498 if (Y_UNLIKELY(!success)) {
499 throw;
500 }
501 }
502 }
503
504 template <typename F>
505 inline void SetValue(TPromise<void>& promise, F&& func,

Callers 15

ApplyMethod · 0.70
ClearMethod · 0.50
GrowMethod · 0.50
insertMethod · 0.50
TDenseHashClass · 0.50
SetValueMethod · 0.50
PatchEntryMethod · 0.50
ParseJsonMethod · 0.50
AsyncFunction · 0.50
LocalExecMethod · 0.50
OnNullMethod · 0.50
OnBooleanMethod · 0.50

Calls 5

SetValueImplFunction · 0.85
funcFunction · 0.85
TrySetExceptionMethod · 0.45
SetExceptionMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected