Skip to content
Snippets Groups Projects
Commit 5fb20249 authored by Recolic's avatar Recolic :house_with_garden:
Browse files

.

parent baf3471e
No related branches found
No related tags found
1 merge request!2shell_run
Pipeline #1064 passed with stage
in 1 minute and 20 seconds
......@@ -48,7 +48,7 @@ namespace rlib {
return std::chrono::duration<double>(end - begin).count();
}
template <typename Func, typename... Args>
static inline auto timeout(double timeout_seconds, Func&& func, Args&&... args) {
static inline auto timeout(int timeout_seconds, Func&& func, Args&&... args) {
using ReturnType = decltype(func(args...));
auto future = std::async(std::launch::async, std::forward<Func>(func), std::forward<Args>(args)...);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment