fn hash_batches(
hash: [u8; 32],
count: u64,
cancel: CancellationToken,
) -> Option<[u8; 32]>Expand description
Hash hash repeatedly count times, checking cancel between batches.
Returns None if cancelled, Some(hash) otherwise.