Thursday, 19 June 2014

Ruby Timeouts

status = Timeout::timeout(5) {
sleep(333)
}
p status
#Timeout::Error: execution expired
view raw Timeouts hosted with ❤ by GitHub

No comments:

Post a Comment