Commit b361e0e7 authored by Dominik Charousset's avatar Dominik Charousset

added `local_actor::has_sync_failure_handler`

parent 682b0ee1
...@@ -221,6 +221,13 @@ class local_actor : public extend<actor>::with<memory_cached> { ...@@ -221,6 +221,13 @@ class local_actor : public extend<actor>::with<memory_cached> {
m_sync_failure_handler = std::move(fun); m_sync_failure_handler = std::move(fun);
} }
/**
* @brief Checks wheter this actor has a user-defined sync failure handler.
*/
inline bool has_sync_failure_handler() {
return static_cast<bool>(m_sync_failure_handler);
}
/** /**
* @brief Calls <tt>on_sync_timeout(fun); on_sync_failure(fun);</tt>. * @brief Calls <tt>on_sync_timeout(fun); on_sync_failure(fun);</tt>.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment