UNPKG

@hyperledger/cactus-common

Version:

Universal library used by both front end and back end components of Cactus. Aims to be a developer swiss army knife.

13 lines (12 loc) 420 B
/** * A generic interface to be implemented by objects/classes that want to express * their ability of returning a certain type of object or value in an async * manner (e.g. by returning a Promise of what is actually being provided). */ export interface IAsyncProvider<T> { /** * Obtains the value/object meant to be provided by this `IAsyncProvider` * implementation. */ get(): Promise<T>; }