To reproduce, run the following. When the Browse prompt appears, press Q. Then run the second code block; it will only print 1 and 2.
promise(function(resolve, reject) {
cat("1\n", file=stderr())
resolve("OK")
cat("2\n", file=stderr())
}) %...>% then(function(value) {
cat("3: ", value, "\n", file=stderr())
# When you get to this prompt, type Q to exit
browser()
cat("4\n", file=stderr())
})
# When you run this code after the code above, it only prints 1 and 2.
promise(function(resolve, reject) {
cat("1\n", file=stderr())
resolve("OK")
cat("2\n", file=stderr())
}) %...>% then(function(value) {
cat("3: ", value, "\n", file=stderr())
cat("4\n", file=stderr())
})
To reproduce, run the following. When the Browse prompt appears, press Q. Then run the second code block; it will only print 1 and 2.