scvsoft / challenge-accepted

Juego que presentamos en la Rubyconf 2013
http://scvsoft.com/challenge-accepted
0 stars 0 forks source link

Simple timeouting for 1 sec #18

Closed leoasis closed 10 years ago

gianu commented 10 years ago

:+1:

We should keep in mind that this kind of timeout can take more than 1 sec to timeout (because we're using MRI, and if the GIL is locked by other thread, the timeout will wake up somewhere in the future).

leoasis commented 10 years ago

Yeah, you're right. Anyway the only threads involved here would be the timeout one, and the one where the tests are running. And I don't mind too much if instead of being 1 second is 1.02 seconds or something