protected async virtual void OnReadCompleteAsync(object sender, EventArgs e) { RecordReader.CloseReader(); await Task.Run(() => Task.WaitAll(RecordWriter.ChildrenTasks.ToArray())); CloseJob(); }