using System; using System.Threading.Tasks; namespace Tapeti.Flow.Default { internal class DelegateYieldPoint : IYieldPoint { private readonly Func onExecute; public DelegateYieldPoint(Func onExecute) { this.onExecute = onExecute; } public Task Execute(FlowContext context) { return onExecute(context); } } }