Nothing
# Test that timeout can stop an infinite iterator
test01 <- function() {
it <- ihasNext(timeout(icount(), 2))
x <- 0
while (hasNext(it))
x <- nextElem(it)
checkTrue(x > 0)
}
# Test that timeout doesn't get in the way too much
test02 <- function() {
n <- 1000
actual <- as.list(timeout(icount(n), time=Inf))
expected <- as.list(1:n)
checkEquals(actual, expected)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.