# complaint here.
current.result = callback( # type: ignore[misc]
current.result, *args, **kwargs
d = defer.Deferred()
self._serializer.addCallback(lambda ignore: cb(*args, **kwargs))
# we need to put off d.callback until this Deferred is finished being
segment_size = self._version[3]
num_old_segments = mathutil.div_ceil(old_size,
segment_size)
"""
return int((n//d) + (n%d != 0))