waitAndDestroy
Client-side wait on a Fence and destroy the Fence.
Return
FenceStatus.CONDITION_SATISFIED on success, FenceStatus.ERROR otherwise.
Parameters
fence
Fence object to wait on.
mode
Whether the command stream is flushed before waiting or not.