3 ms·
it offers some elegance, here's a timeout function blogpost. http://hyegar.com/2016/03/22/simple-timeouts/ http://hyegar.com/2016/03/22/simple-timeouts/ In it
by e_d_g_a_r 11y ago
it offers some elegance, here's a timeout function blogpost.
http://hyegar.com/2016/03/22/simple-timeouts/ http://hyegar.com/2016/03/22/simple-timeouts/
In it the timeout function only takes one arg for its timeout wrapped function, so how do we use functions with more than 1 arg? Via currying