powered by
Waits for the termination of the query, either by stopQuery or by an error.
stopQuery
awaitTermination(x, timeout = NULL)# S4 method for StreamingQuery awaitTermination(x, timeout = NULL)
# S4 method for StreamingQuery awaitTermination(x, timeout = NULL)
a StreamingQuery.
time to wait in milliseconds, if omitted, wait indefinitely until stopQuery is called or an error has occurred.
TRUE if query has terminated within the timeout period; nothing if timeout is not specified.
If the query has terminated, then all subsequent calls to this method will return TRUE immediately.
Other StreamingQuery methods: explain(), isActive(), lastProgress(), queryName(), status(), stopQuery()
explain()
isActive()
lastProgress()
queryName()
status()
stopQuery()
# NOT RUN { awaitTermination(sq, 10000) # }
Run the code above in your browser using DataLab