test_that("race() rejects (#76)", {
defer_fail <- function() {
deferred$new(action = function(resolve) stop("foo"))
}
expect_error(
synchronise(async_race(
delay(0.1),
defer_fail()
)),
"foo"
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.