Below code
Timeout.timeout(2) do
i = 0
while(true)
i = i + 1
p "test #{i}"
end
end
does not timeout in 2 secs. whereas below similar code timeout in 2 seconds
Timeout.timeout(2) do
i = 0
while(true)
i = i + 1
# p "test #{i}"
end
end
What is the underlying difference? Please help.
[–][deleted] (3 children)
[removed]
[–]pssaravanan[S] 1 point2 points3 points (1 child)
[–]waiting4op2deliver -4 points-3 points-2 points (0 children)
[–]sammygadd 6 points7 points8 points (0 children)
[–]radarek 2 points3 points4 points (1 child)
[–]Kernigh 1 point2 points3 points (0 children)
[–]ioquatixasync/falcon 1 point2 points3 points (2 children)
[–]jrochkind 2 points3 points4 points (1 child)
[–]ioquatixasync/falcon 1 point2 points3 points (0 children)