markAsWriting

fun markAsWriting(block: PieceBlock, peerId: Any? = null): Boolean

Mark block as writing (received, flushing to disk), downloaded from peerId. Mirrors mark_as_writing. Returns false if the block was already writing or finished. Clears the block's peer count (all competing requests are considered cancelled now).