You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not 100% sure if related to this issue, or another issue entirely -- I'm not seeing any unknown error
but as far as I can tell, either I'm misunderstanding the purpose of kill, or it simply doesn't work
deftimeout(time, &blk)t2=Thread.new(&blk)t1=Thread.newdoThread.sleep(time)t2.killputs"t2 should be killed; alive = #{t2.alive?}"endt2.joinputs"t2 finished"t1.killendtimeout(2)doputs"waiting for char"char=STDIN.getcputs"this shouldn't run"endputs"after timeout"
prints:
waiting for char
t2 should be killed; alive = true
and if the enter key is pressed after waiting:
waiting for char
t2 should be killed; alive = true
this shouldn't run
t2 finished
after timeout
After 10 seconds, it's closed by a unkown error which is from os.
The text was updated successfully, but these errors were encountered: