needCalls = (times, callback) => err => {
	if (--times === 0) {
		return callback(err);
	}
	if (err && times > 0) {
		times = 0;
		return callback(err);
	}
}
@param {number} times times
@param {(err?: Error) => void} callback callback
@returns {(err?: Error) => void} callback