* resolve issue with exit code not bubbling up and inflight tasks swallowing exceptions * update changelog * refacter to reduce and centralize inline program exception flow complexity * quick comments on new pulumi function return type
20 lines
685 B
C#
20 lines
685 B
C#
// Copyright 2016-2019, Pulumi Corporation
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Immutable;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Pulumi
|
|
{
|
|
internal interface IRunner
|
|
{
|
|
ImmutableList<Exception> SwallowedExceptions { get; }
|
|
void RegisterTask(string description, Task task);
|
|
Task<int> RunAsync(Func<Task<IDictionary<string, object?>>> func, StackOptions? options);
|
|
Task<int> RunAsync<TStack>() where TStack : Stack, new();
|
|
Task<int> RunAsync<TStack>(Func<TStack> stackFactory) where TStack : Stack;
|
|
Task<int> RunAsync<TStack>(IServiceProvider serviceProvider) where TStack : Stack;
|
|
}
|
|
}
|