// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT License. // See the LICENSE file in the project root for more information. using System.Collections.Generic; namespace System.Reactive { internal abstract class ConcatSink : TailRecursiveSink { protected ConcatSink(IObserver observer) : base(observer) { } protected override IEnumerable>? Extract(IObservable source) => (source as IConcatenatable)?.GetSources(); public override void OnCompleted() => Recurse(); } }