public Logic(UnfoldResourceSourceAsync <TOut, TSource> source, Attributes inheritedAttributes) : base(source.Shape) { _source = source; _resource = new TaskCompletionSource <TSource>(); _decider = new Lazy <Decider>(() => { var strategy = inheritedAttributes.GetAttribute <ActorAttributes.SupervisionStrategy>(null); return(strategy != null ? strategy.Decider : Deciders.StoppingDecider); }); SetHandler(source.Out, this); }