def METHOD_NAME(self) -> "Deferred[None]":
    """Returns a deferred that resolves when finished writing to file"""
    assert self._finished_deferred is not None
    return make_deferred_yieldable(self._finished_deferred)