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 async Task Execute(FlowContext context) { await onExecute(context).ConfigureAwait(false); } } }