use
Takes a snapshot of the current Xof's state and produces a Reader.
Reader is automatically closed after action completes such that reading from the closed Reader will throw exception; another Reader must be produced if further reading is required.
The Xof can continue to be updated with new data or read from again as it is unaffected by Reader.reads.
Parameters
resetXof
if true, also resets the Xof to its initial state after taking the snapshot.