using System.Threading.Tasks;
namespace Capnp.Rpc
{
///
/// A promised capability.
///
public interface IResolvingCapability
{
///
/// Completes when the capability gets resolved.
///
Task WhenResolved { get; }
///
/// Returns the resolved capability
///
/// Capability interface or
/// the resolved capability, or null if it did not resolve yet
T? GetResolvedCapability() where T: class;
}
}