using Capnp.Util;
using System.Threading.Tasks;
namespace Capnp.Rpc
{
///
/// A promised capability.
///
public interface IResolvingCapability
{
///
/// Completes when the capability gets resolved.
///
StrictlyOrderedAwaitTask 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;
}
}