Skip to contents

Non-blocking check to see if an async operation has completed.

For a PJRTBuffer, whether its computation or transfer has finished. For an array returned by as_array(x, await = FALSE), whether its transfer to the host has finished. Any other R object is always ready.

Usage

is_ready(x, ...)

Arguments

x

An async value object.

...

Additional arguments (unused).

Value

TRUE if the operation has completed, FALSE otherwise.