awaitTermination: awaitTermination

Description Usage Arguments Details Value Note See Also Examples

Description

Waits for the termination of the query, either by stopQuery or by an error.

Usage

1
2
3
4
awaitTermination(x, timeout = NULL)

## S4 method for signature 'StreamingQuery'
awaitTermination(x, timeout = NULL)

Arguments

x

a StreamingQuery.

timeout

time to wait in milliseconds, if omitted, wait indefinitely until stopQuery is called or an error has occurred.

Details

If the query has terminated, then all subsequent calls to this method will return TRUE immediately.

Value

TRUE if query has terminated within the timeout period; nothing if timeout is not specified.

Note

awaitTermination(StreamingQuery) since 2.2.0

experimental

See Also

Other StreamingQuery methods: isActive(), lastProgress(), queryName(), status(), stopQuery()

Examples

1
## Not run:  awaitTermination(sq, 10000) 

danzafar/tidyspark documentation built on Sept. 30, 2020, 12:19 p.m.