10 lines
257 B
TypeScript
10 lines
257 B
TypeScript
|
import { Deferred } from './utils';
|
||
|
export declare class Resource<T> {
|
||
|
resource: T;
|
||
|
readonly timestamp: number;
|
||
|
protected deferred: Deferred<void>;
|
||
|
constructor(resource: T);
|
||
|
readonly promise: Promise<void>;
|
||
|
resolve(): Resource<T>;
|
||
|
}
|