Use proper promise:: prefix

This commit is contained in:
Joe Cheng
2017-04-11 16:59:48 -07:00
parent 74bf8b0554
commit 8c935ff44e
3 changed files with 14 additions and 15 deletions

View File

@@ -165,7 +165,7 @@ drawPlot <- function(name, session, func, width, height, pixelratio, res, ...) {
domain <- createGraphicsDevicePromiseDomain(device)
grDevices::dev.control(displaylist = "enable")
p1 <- with_promise_domain(domain, {
p1 <- promise::with_promise_domain(domain, {
p2 <- promise::resolved(func())
p2 <- promise::then(p2, function(value, visible) {
if (visible) {