transfer
Synchronizes around a newly created lock to temporarily prevent any modifications to a net.rsprot.protocol.metrics.NetworkTrafficMonitor. While the block executes, the use function will not be able to execute.
Parameters
block
the higher order function to execute with synchronized access.