Function invoke

Synopsis

#include <src/uvw/handle.hpp>

template <typename F, typename... Args>
void invoke(F &&f, Args &&... args)

Description

No description yet.

Source

Lines 60-64 in src/uvw/handle.hpp.

template<typename F, typename... Args>
void invoke(F &&f, Args&&... args) {
    auto err = std::forward<F>(f)(std::forward<Args>(args)...);
    if(err) { Emitter<T>::publish(ErrorEvent{err}); }
}





Add Discussion as Guest

Log in